svn: How to revert somebody else's commit?

断了今生、忘了曾经 提交于 2019-12-02 08:47:46

In Subversion, "revert" means to undo uncommitted changes to a working copy. What you're looking to do is to (effectively) undo a commit. This is normally done in Subversion with a reverse merge

Assuming that your boss did everything in a single commit (revision REVNUM), you'll just do the following in your working copy:

svn merge -c -REVNUM URL_TO_REPOSITORY_LOCATION

Then commit the new revision. All changes made in REVNUM will no longer be visible in the HEAD revision, and your revision history will show the changes committed, then merged back out.

Use the TortoiseSVN Merge context menu item to step through the same process.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!