git init
git init newDir
git clone
git clone <url> [directory]
git config
git config -l
git config --global list
git config --global user.name '你的用户名'
git config --global user.email '你的邮箱'
git status
git add
git commit
git commit -m "注释"
git commit -am "注释"
git push
git push -u origin master
git remote add [shortname] [url]
git branch
git branch (branchname)
git checkout (branchname)
git merge
git branch -d (branchname)
git remote rm [别名]
git fetch
git merge [branchname]
git pull
git push
ssh-keygen
ssh-keygen -t rsa
git log --format='%aN' | sort -u | while read name; do echo -en "$name\t"; git log --author="$name" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }' -; done