git常用命令汇总

36 阅读1分钟

放弃commit的文件

撤销最新的commit,并保留所做的更改

git reset HEAD~

撤销最新的commit,并删除所做的更改

git reset --hard HEAD~