简体   繁体   中英

SVN command for recommit the revert changes based on revision number

I reverted the committed files using svn command

svn merge -r:73:68 http://my.repository.com/my/project/trunk
svn commit -m "Reverted to revision 68."

I have to recommit the revision number 73 changes again, is that possible?

I have to recommit the revision number 73 changes again, is that possible?

You can't and you don't have to. One of the key features of SVN is that revision history in Subversion repository is immutable.

You can't rewrite the history of changes, but there should be no problems to commit this change as a new revision.

Read SVNBook | Undoing Changes .

Its not really needed to re-write the history and there is no real feature in svn too. Its always good to maintain the entire history. So the possible solution would be, Modify the changes and commit back which will create one more revisions.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM