Skip to content

Instantly share code, notes, and snippets.

@ExtremeGTX
Last active October 28, 2017 07:13
Show Gist options
  • Save ExtremeGTX/6325ef7cf3950f343f8e7a455cbdde11 to your computer and use it in GitHub Desktop.
Save ExtremeGTX/6325ef7cf3950f343f8e7a455cbdde11 to your computer and use it in GitHub Desktop.
My Git Reference
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