Git
Exercise Objective:
- Install Git on your machine and create a GitHub repository that you will upload work to for the duration of this boot camp.
Exercise Steps/Instructions:
-
Download Git and install on your machine.
-
Create a GitHub account
********************************
Git Instructions
- Create a template copy of this repository by clicking : "Use this template"
- Name the repository the same name as the master template repository.
- Add your TA as collaborator
- Clone YOUR repo to your local computer
- Create a new branch: git checkout -b
<firstName-lastName>
. - Implement the project on your newly created
<firstName-lastName>
branch, committing changes regularly. - Push commits: git push origin
<firstName-lastName>
.
********************************
- Copy the files from the HTML prework and paste it in the new cloned folder (e.g. index.html, index.css)
- Save your changes and then add, commit and push your files up to your repository
- Create a new file using the command line named notes.txt
- Add some text to the file notes.txt
- Create a new branch call newBranch
- Move the HTML to the newBranch and leave the notes.txt file in the master branch
- Save the changes and then add, commit and push your files up to your repository
- Refresh your repository to make sure your files got uploaded and the branches got updated
- Go back and delete the file note.txt using Git
- Move the HTML files back to the master branch
- Delete the newBranch
- Check the status, add, commit and push your changes
- Go to your repository and make sure the notes.txt file is removed, and only HTML files remain
-
Submit the exercise on the TEKcamp Portal
-
Complete the Exercise Evaluation form on the TEKcamp Portal.