mirror of
https://github.com/Erreur32/cheat.git
synced 2024-12-23 06:02:12 +01:00
Added git cheats
This commit is contained in:
parent
dcfc6e60be
commit
63bd132a9b
1 changed files with 9 additions and 0 deletions
|
@ -16,3 +16,12 @@ git push origin master
|
||||||
|
|
||||||
# To push to a specified repository:
|
# To push to a specified repository:
|
||||||
git push git@github.com:username/project.git
|
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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue