1.保存状态
git init
git add .
git commit -m "my back up "
$ git reset --hard
2.添加删除重命名
git add readme
git rm test01
git rm -r usb/
git mv test1.c test2.c
3.撤销与重做
git log
git reset --hard 766f
git checkout
撤销
git commit -a
git revert
4. 生成变更日志
git log > changelog
git clone
git pull
git diff
git whatchanged