mirror of https://github.com/cheat/cheat.git
Minor changes to the git cheatsheet.
This commit is contained in:
parent
9e8294b566
commit
c7c63b42cd
|
@ -18,10 +18,10 @@ git push origin master
|
|||
git push git@github.com:username/project.git
|
||||
|
||||
# To sync a fork with the master repo:
|
||||
git remote add upstream git@github.com:name/repo.git (Set a new repo)
|
||||
git remote -v (Confirm new remote repo)
|
||||
git fetch upstream (Get branches)
|
||||
git branch -va (List local - remote branches)
|
||||
git checkout master (Checpkout local master branch)
|
||||
git merge upstream/master (Merge remote into local repo)
|
||||
git remote add upstream git@github.com:name/repo.git # Set a new repo
|
||||
git remote -v # Confirm new remote repo
|
||||
git fetch upstream # Get branches
|
||||
git branch -va # List local - remote branches
|
||||
git checkout master # Checpkout local master branch
|
||||
git merge upstream/master # Merge remote into local repo
|
||||
|
||||
|
|
Loading…
Reference in New Issue