77 lines
1.8 KiB
Plaintext
77 lines
1.8 KiB
Plaintext
See also https://git-scm.com/downloads
|
|
|
|
=========================================
|
|
Save password locally? Try
|
|
git config credential.helper store
|
|
|
|
=========================================
|
|
New remote tag:
|
|
|
|
git tag -a TAGNAME -m "tag TAGNAME"
|
|
git push origin TAGNAME
|
|
|
|
|
|
=========================================
|
|
New remote branch:
|
|
|
|
git checkout -b BRANCHNAME
|
|
git push -u origin BRANCHNAME
|
|
|
|
git checkout -b 2019.01.14_release_1.19.1
|
|
git push -u origin 2019.01.14_release_1.19.1
|
|
|
|
|
|
=========================================
|
|
Download submodules:
|
|
|
|
git submodule update --init
|
|
|
|
=========================================
|
|
Refresh submodules:
|
|
|
|
git submodule update --recursive --remote
|
|
|
|
=========================================
|
|
|
|
Generate diff of specific commit
|
|
|
|
git diff COMMIT^ COMMIT
|
|
(this generates diff between previous to COMMIT and COMMIT)
|
|
=========================================
|
|
|
|
https://help.github.com/articles/configuring-a-remote-for-a-fork/
|
|
|
|
git remote -v
|
|
git remote add upstream https://github.com/ChibiOS/ChibiOS.git
|
|
or
|
|
git remote add upstream https://github.com/RomRaider/RomRaider
|
|
git remote -v
|
|
|
|
See also git_scripts/git_add_upstream.bat
|
|
|
|
=========================================
|
|
https://help.github.com/articles/syncing-a-fork/
|
|
git fetch upstream
|
|
git merge upstream/stable_17.6.x
|
|
or
|
|
git merge upstream/master
|
|
git push
|
|
|
|
|
|
http://stackoverflow.com/questions/9646167/clean-up-a-fork-and-restart-it-from-the-upstream
|
|
|
|
See also git_scripts/git_reset_to_upstream.bat
|
|
|
|
=========================================
|
|
https://stackoverflow.com/questions/19279490/can-i-fork-another-persons-repo-twice-into-my-own-account
|
|
|
|
git clone http://github.com/RomRaider/RomRaider RomRaider_copy_2
|
|
cd RomRaider_copy_2
|
|
git remote remove origin
|
|
git remote add origin https://github.com/rusefi/RomRaider_copy_2.git
|
|
git push -u origin master
|
|
|
|
|
|
|
|
|