Git
Remove files that aren't part of the repo:
git clean -f
Checkout a repo's submodules:
git submodule init
git submodule update
git show {commit}:{path}
git checkout {commit}:{path}
git merge-base --is-ancestor {old-commit} {new-commit}
git log -G{regexp}
git ls-tree -r --name-only {branch}
git checkout {branch} -- {files}
git rebase -i {commit}~1
Mark commit(s) to be split with "edit" and save.
git reset HEAD~
Create smaller commits.
git rebase --continue