mirror of
https://github.com/Erreur32/cheat.git
synced 2024-12-22 21:52:12 +01:00
Minor changes to the git cheatsheet.
This commit is contained in:
parent
9e8294b566
commit
c7c63b42cd
1 changed files with 6 additions and 6 deletions
|
@ -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 a new issue