Git

Admin

init
clone
fsck
gc

Remote

pull
push

Inspect

diff
diff --cached
diff HEAD
grep
log
show
status

Handle

add
add -u
add -A
branch
checkout
commit
commit -a
commit -v
commit --amend
merge
mv
rebase
reset
revert
rm
stash
tag

what?

bisect
fetch

Initialize

git config --global n v
git config -l
user.name
user.email
alias.co
alias.st
alias.ci

diff

git diff
git diff --cached
git diff HEAD
git diff ...otherbranch

Create repo

$ git init
$ vi hello.c
$ git add hello.c
$ git commit -m "first commit."
.gitignore
log --oneline