Skip to content

Instantly share code, notes, and snippets.

@ExtremeGTX
Last active Oct 28, 2017
Embed
What would you like to do?
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