Skip to content

ironhack-labs/lab-git-practice-web-dev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

logo_ironhack_blue 7

Lab | Git Practice: About Me for Web Development Students

Lab Objectives

  • Understand the basic Git workflow: fork, clone, commit, push, and create a pull request (PR).
  • Write a personal introduction using a text file.
  • Practice submitting work using GitHub.

Instructions

  1. Fork the Repository:

    • You are already in the GitHub repository you want to fork.
    • Click the Fork button in the upper right corner of the page.
      • Remember, this creates a copy of the repository under your own GitHub account.
    • Confirm that the repository now appears in your account, showing your username in the repository name (e.g., username/repository-name).
  2. Clone the Forked Repository:

    • Navigate to your forked repository on GitHub (you should be already there but make sure you are not still in the original repository you should've forked already)
    • Click the Code button and copy the HTTPS or SSH URL.
    • Open your terminal or command prompt and navigate to the directory where you want to store the repository (for now you can even do it on your Desktop).
    • Run the following command to clone the repository:
      git clone <repository-url>
      cd repository-name
      # cd lab-git-practice-web-dev
  3. Work on the Lab: Edit the Text File:

    • Open the repository in your code editor (e.g., VS Code).
    • Locate the about-me.txt file.
    • Fill in the details:
      Please introduce yourself!
      - Your name: Jane Doe
      - Why you are interested in Web Development: I want to build amazing websites and web apps!
      - One fun fact about yourself or a goal for this course: I love painting landscapes.
    • Save the file.
  4. Commit Your Changes:

    • Stage your changes:
      git add about-me.txt
    • Commit the changes with a meaningful message:
      git commit -m "Added my personal introduction to about-me.txt"
  5. Push Your Changes:

    • Push your changes directly to your forked repository:
      git push
  6. Create a Pull Request:

    • Navigate to your forked repository on GitHub.
    • Click Compare & pull request.
    • Ensure the base repository is the original repository and the base branch is main.
    • Add a title and description for your PR:
      • Example Title: Lab X Solution Submission
      • Example Description: "This pull request includes short summary about myself."
    • Click Create Pull Request.

Lab Submission Requirements

  • Share link to your Pull Request in the submission field on Student Portal.

Daily Process for Labs 🚀

Students will repeat the above steps for each new lab:

  1. Fork the original repository (if not already done).
  2. Clone the repository (only needed the first time).
  3. Work on the lab, commit the changes, and push to their fork.
  4. Submit a pull request to the original repository.
  5. Paste the URL to your Pull Request in the submission field on Student Portal.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published