简体   繁体   中英

What is the equivalent command for “git commit --amend” in SVN

What is the equivalent command for git commit --amend in SVN ? I know this option is not available in SVN but I'm looking for workarounds .

There is no robust, sane, well-defined way to change history in SVN. Because commits are sent to the central repo when you make them, the integrity of check-outs by other developers cannot be guaranteed if you make changes in the history after that point.

If you can control the clients completely, there are ugly, dangerous hacks you can use to modify the immutable parts of the repository. For example, exporting the entire database, hacking it, zapping the repo, and reimporting would achieve what you describe, but is error-prone and probably extreme overkill for most situations.

Using git-svn in front of Subversion is probably the absolutely easiest, safest, most productive way to get a safety net which facilitates this, and other features which exist in Git but not in Subversion.

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