项目初始化:
$
git init
$
git add *.c
$
git add LICENSE
$
git commit -m'initial project version'
对已经存在的项目构建git:
$
git clone https://github.com/libgit2/libgit2
$
git diff:staged区与working比较
$
git diff --staged:staged区与.git directory区比较