Git撤销commit

git提交(commit)后从暂存区中撤销部分文件:

git rm --cached <file>
git commit -m '再次提交即可'

通过以上操作即可从暂存区中撤销部分文件

评论

等风等雨等你来