你可能在找的git操作 密州城南 2019-09-06 145 阅读1分钟 还原单个文件 git checkout HEAD a.txt ##撤回commit提交(不丢失代码) git reset --soft HEAD^