JakeSaintG / FrontEndGitExercise

A Git exercise for use in Code Louisville's Front End Web Development class.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Front End Web Development Git Exercise

For use in Code Louisville's Front End Web course..

You are a developer that has been tasked with adding themselves to the list of class members! You will be going through the entire "feature addition" process from start to finish. Please take this seriously!

Start Instructions

  • Fork repository. This can be done by clicking "Fork" in the upper right hand corner.
  • Clone your forked repository to your machine by clicking the "Code" button and copying the url.
    • Can be done either with git terminal (preferred) or by downloading the zip file.
    • Do not use the below command verbatim! Yours will look different.
git clone https://github.com/{YOUR USERNAME}/FrontEndGitExercise.git
  • Change directory into the folder and create a new branch.
git branch <branch-name>
  • You will be adding your name to an HTML document so branch names like the ones below are appropriate.
    • "added-div-containing-my-details"
    • "added-jake-st.germain-to-main-page"
  • Checkout, or go to, your new feature branch.
git checkout <branch-name>
  • Open the file in your preferred IDE, follow the instructions listed in index.html, and come back here to the Finish Instructions section.

Finish Instructions

  • Nice work! Now don't forget to stage your changes and commit them to your branch. Make sure that your commit message is meaningful.
git add index.html
git commit -m "added-div"
  • Now push those changes up to your forked repository on Github!
git push origin <branch-name>
  • When you go to your forked repo on github.com, you should see a button that says "Compare & Pull Request". If not, refresh or go to the "Pull Requests" tab. Click on it when you find it.
    • A pull request is how most developers add their changes to the main branch of a repository. Code deployments tend to be made from "main" so this is important. They are typically done this way to allow other members of your team to check your code and approve the requests. I will be checking your additions and approving these requests if they are successful!
  • Now add a title and message. Sometimes this is auto-filled from your branch name and commit messages.
  • Create the pull request! You may see something along the lines of "Pending Approval" show up in red. This is intended!
  • You now also have a repository on your profile that shows that you contributed to something. Feel free to delete this forked repo or keep it around.

About

A Git exercise for use in Code Louisville's Front End Web Development class.


Languages

Language:HTML 56.4%Language:CSS 23.0%Language:JavaScript 20.6%