Last active
October 28, 2017 07:13
-
-
Save ExtremeGTX/6325ef7cf3950f343f8e7a455cbdde11 to your computer and use it in GitHub Desktop.
My Git Reference
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add Submodule to repo: | |
git add submodule http://---- source/ | |
Add All Changes | |
git add . | |
Add Some files only | |
git add <filename> <filename2> | |
Open VIM for commit message before commit: | |
git commit | |
Direct Commit | |
git commit -m"commit message" | |
Combine staged changes with the previous commit / modify last commit message (open VIM): | |
git commit --amend | |
Push Commits to server: | |
git push | |
Clone repo including all submodules: | |
git clone --recursive http:// | |
Syncing fork (master branch) with upstream: | |
git remote add upstream http:// | |
git fetch upstream | |
git rebase upstream/master | |
git push -f origin master | |
Sync Submodules with upstream: | |
git submodule update --recursive --remote | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment