A tool for editing version-control repository history.

reposurgeon enables risky operations that version-control systems don't want to let you do, such as editing past comments and metadata and removing commits. It works with any version control system that can export and import git fast-import streams, including git, hg, fossil, bzr, CVS, RCS, bk, and src. It can also read Subversion dump files directly and can thus be used to script production of very high-quality conversions from Subversion to any supported DVCS.


NEWSproject news
reposurgeon-3.46.tar.xzcompressed source tarball
TODOto-do file
COPYINGproject license
reposurgeon-3.46.md5source tarball MD5 checksum
README.htmlroadmap file
repotool.htmlHTML rendering of repotool.1
reposurgeon.htmlHTML rendering of reposurgeon.1
repomapper.htmlHTML rendering of repomapper.1
repocutter.htmlHTML rendering of repocutter.1

The project repository is at

Project statistics are available at OpenHub.

This is packaged for Debian and derivatives as: reposurgeon

There is a project IRC channel.

If you appreciate this code (and especially if you make money by using it) please support me on Patreon.

Recent Changes

     Added 'relax' no-op command.
     Added bug warning about repocutter not handling Mac line terminations.
     Fix for GitLab issue #117: malformed attribution.
     Repocutter help command has been repaired.
     Command renames: mailbox_in -> msgin, mailbox_out -> msgout.
     The exec and eval commands have been removed.
     Scripts now bail out on error; "relax" suppresses this.
     Fixes for repocutter strip and patherename (GitLab issues #18 & #142)
     Document some limitations of repocutter sift and expunge.


This work is funded by...

My Bronze supporters on Patreon: Martin Hohenberg, Jae Yang, Daniel Garber, Kyle Burkholder, Mike Nichols, Mark Ping, Tom Taylor, Arnold F. Williams, George Brower, Michael Nygard, Brendan Long, Sven Dowideit, Dave Witten, Jonathan Cast, James Cronin, David L. Jessup, Christopher Chang, Killer Delicious, Jacob Lyles, Neil Anuskiewicz, Mordant, Clemens Ladisch, Wojciech Woytniak, Masa Bando, John Carmack, Xingyu Wang, Jane Tang, Steven Evans, Jan Roudaut, Hsueh Sung, Ken LaCrosse, taishi28012, John Simpson, Jerod Tufte, Paul Abbott, Stan Witherspoon, Donald Greer, Gratiela Chergu, Michael Ciagala, Dale Carstensen, Chip Davis.

My Institutional supporters on Patreon: Jason Azze and the DEVOPS team at his $DAYJOB, Mark Atwood, Christoph Happle.

Become a Patreon patron!