git add file 添加文件到暂存区 git commit -m '' 提交文件到仓库
git checkout --file 丢弃工作区的修改 git reset HEAD file 把暂存区的修改撤销掉,重新放回工作区
git reset --hard HEAD^ ^代表上个版本 ^^上上个版本 以此类推 git reset --hard [commit id]
git log git log --pretty=online 简洁版 git reflog 可以查看历史命令,用来确认退回到哪一个版本
git status
git diff
There was an error while loading. Please reload this page.