# How to simplify the graph produced by git log --graph
# https://gist.github.com/datagrok/4221767
The graph (git log --graph [--oneline] [--all])
# How to search a Git repository by commit message?
# http://stackoverflow.com/questions/7124914/how-to-search-a-git-repository-by-commit-message
git log --all --grep='Build 0051'
# How to delete a Git branch both locally and remotely?
# http://stackoverflow.com/questions/2003505/how-to-delete-a-git-branch-both-locally-and-remotely
git branch -d <branch_name>
git push <remote_name> --delete <branch_name>
# Review / edit the last commit
git commit --amend
# Set up git to pull and push all branches
# http://stackoverflow.com/questions/1914579/set-up-git-to-pull-and-push-all-branches
git push --all <remote>
# What's the simplest way to get a list of conflicted files?
# http://stackoverflow.com/questions/3065650/whats-the-simplest-way-to-get-a-list-of-conflicted-files
git diff --name-only --diff-filter=U
# How to undo last commit(s) in Git?
# http://stackoverflow.com/questions/927358/how-to-undo-last-commits-in-git
git reset --hard HEAD~1
# How can I undo git reset --hard HEAD~1?
# http://stackoverflow.com/questions/5473/how-can-i-undo-git-reset-hard-head1
git reset --hard <sha1 of desired commit>
# How can I merge two commits into one?
# http://stackoverflow.com/questions/2563632/how-can-i-merge-two-commits-into-one
git reset --soft "HEAD^"
git commit --amend
# How to checkout master to all submodules (sub repositories) of project ?
git submodule foreach git checkout master
# How to pull all submodules (sub repositories)
git submodule foreach git pull --all --force