A git intro lesson
##Assignment
Start with this interactive git tutorial. Come back to this page after you've finished.
Follow along here, courtesy of Learn, but note these important differences:
- Instead of going to the first-lab-000 repo, go to the url for this git intro assignment: https://github.com/Duke-HC-Mobile-Apps-Web/Git-Intro
- When cloning the repository, ignore the instruction telling you to use the SSH url. Please use the HTTPS one that you'll see in your forked repository
- To optionally learn more about setting your machine up to use SSH, check out https://help.github.com/articles/generating-ssh-keys/
- The video walks through adding several files to the repo, we'd like you to only add one .txt file. If you've added others, look at the git rm command
- It should be titled with your name firstName_lastName.txt and should include:
- Your year and major
- Your favorite programming language/s
- It should be titled with your name firstName_lastName.txt and should include:
- Make sure you follow the instructions for sending a pull request back to this repo, that's the most important part!
##Alternate For a text and image version of this assignment (instead of a video): https://github.com/learn-co-students/enough-git-for-learn-co-001-prework-web/blob/master/README.md
##Topics covered
- Forking a repository GitHub.
git clone
to clone a repository to your local computer.git status
to see the status of your locally cloned git repository.git add .
to add your local changes to be committed.git commit -am "Commit Message"
to commit changes that have been added with a message.git push
to upload your local changes to GitHub.- Opening a Pull Request on GitHub.
##Further Learning
http://git-scm.com/book/en/Getting-Started-About-Version-Control
https://help.github.com/articles/set-up-git