-
Notifications
You must be signed in to change notification settings - Fork 18
Git Cheat Sheet
fritogotlayed edited this page Jan 29, 2015
·
3 revisions
- For SSH
git remote add upstream [email protected]:DUWS-R-Team/DUWS-R.git - For HTTP
git remote add upstream https://github.com/DUWS-R-Team/DUWS-R.git
-
git checkout master- Put me on my master branch -
git checkout -b MyNewBranchName- Create a new branch based off my master
- Updating local
master-
git fetch upstream- Let my local know about the changes on DUWS-R -
git checkout master- Put me on my master branch -
git rebase upstream\master- Bring my localmasterup to match the upstreammaster
-
- Updating another branch (perform the above steps first)
-
git checkout MyBranchName- Put me on my branch -
git rebase master- Update me to my master- If you have problem here you most likely need to merge or abort
- You can abort by typing
git rebase --abort - You can merge by following this guide
- You can abort by typing
- If you have problem here you most likely need to merge or abort
-