1. 程式人生 > >常用 git 命令

常用 git 命令

diff which add -s files directory his head included

git diff : compare working directory and staged file ( by git add)

git diff --stage: compare staged file with file on the server

git diff HEAD: compare working directory and file on the server

git show $commit --stat : show which files included for $commit

git log -p file : show commit history for file

常用 git 命令