% git # Initializes a git repository git init # Clone a git repository git clone # Rebase upstream master into local/origin master git fetch git checkout master git rebase /master git fetch origin git push -f origin master # Merge upstream master into local/origin master git fetch git checkout master git merge /master git fetch origin git push -f origin master # Adds a remote for a git repository git remote add # Renames a remote for a git repository git remote rename # Remove a remote for a git repository git remote remove # Saves the changes to a file in a commit git commit -m # Pushes committed changes to remote repository git push --set-upstream # Displays formatted log of commits for a repo git log --all --decorate --oneline --graph # Clear everything git clean -dxf # Add a new module git submodule add # Update module git submodule update --init # Update module without init git submodule update # Pull all submodules git submodule foreach git pull origin master # Skip git hooks git commit --no-verify # Create new branch from current HEAD git checkout -b