-
Notifications
You must be signed in to change notification settings - Fork 21
Git Cheatsheet
Colin Hart edited this page Feb 8, 2017
·
1 revision
#Cheatsheet
- $
git branch
- lists all available branches
- $
git checkout <branch name>
- moves from current branch to a different branch
- $
git checkout -b <branch name>
- creates a branch and switches from current branch to just created branch
- $
git branch -d <branch name>
- deletes the branch with that name locally
- $
git merge <branch name>
- takes the committed code in the branch you pass in and merges it into the branch you're currently in
- $
git remote -v
- lists all the remotes on your repo.
- $
git remote add <remote name> <url>
- add a new remote to your repo
- remote name would be:
- origin (your fork or your repo)
- upstream (the place your forked from)
- heroku (the heroku remote url when you run $
heroku create
)
- $
git remote remove <remote name>
- deletes the remote named
Class Resources
- Outcomes
- Lesson Recordings
- GA Youtube Content
- Student Handbook
- How to add a page to the wiki
- Easy Project Polishing
- Bug Journal
- Git Cheatsheet
References
Extra Online Material
Student Created Resources