git revert 撤销某次操作,此次操作之前和之后的commit和history都会保留,并且把这次撤销作为一次最新的提交
撤销commits
bash 复制代码git revert -n 'commit id'
撤销某次merge
保留本分支内容,撤销'commit id'
对应的内容
git revert -m 1 'commit id'
标签:git,commits,revert,撤销,merge,某次,commit,id
From: https://www.cnblogs.com/lzqd/p/17702414.html