1.设置git用户签名
git config --global user.name Lei 用户名
git config --global user.email 155xxxx1217@139.com 虚拟用户邮箱地址
查看是否配置成功
2.初始化本地库
git init
查看是否初始化成功
3.查看git状态
git status
4.添加暂存区
git add 文件名
5.删除暂存区文件
git rm --cache hello.txt
6.提交暂存区文件到本地库
git commit -m "测试git" hello.txt
6.查看日志信息
git reflog
7.查看详细日志
git log
8.版本穿梭
git reset --hard 版本号