git config --global username "Your github username"
git config --global user.email "yourgitemail@yourdomain.com"
git config --global user.email "yourgitemail@yourdomain.com"
git branch
git branch xxx_dev
git branch -r
git branch -D xxxx_dev
gti fetch -p
git push orgin -delete xxxx_dev
git log
git pull
git checkout
git status
git stash save “save message”
git stash list
git stash show num
git stash apply num
git stash pop num
git stash drop num
git stash clear
git stash show
diff
git diff xx1_dev xxx2_dev –stat
git diff xxx1_dev xxx2_dev
git diff branch
git diff commitid1 commitid2
git submodule add
git submodule update
git submodule deinit
加上 -f 子模块本地有修改也会被移除
git rm
git submodule init
git submodule foreach git pull
git submodule foreach git checkpout xxx_branch
format-patch
git format-patch -1
git am xx.patch
git apply xx.patch
git am/apply --whitespace=fix xx.patch