- git config --global user.name
- git config --global user.email
- git config --list
- git init //重置一个空的暂存区
- git status
- git add
- git commit -m 存储信息。
- git log 查看存储信息
撤销
用暂存区的文件覆盖工作目录的文件:git checkout文件
将文件从暂存区删除 git rm --cached
将git仓库中指定的更新记录恢复出来,并且覆盖暂存区和工作目录,git rest --hard commitID