...before the test merge: $ git switch topic $ git merge master $ git reset --hard HEAD^ ;# rewind the test merge $ ... work on both topic and master branches $ git switch master $…...polishing them in a topic branch, so create topic/wip branch off of the current HEAD . 2. Rewind the master branch to get rid of those three commits. 3. Switch to topic/wip bran…...=gitweb \ git@github.com:whatever/gitweb.git master Or, using --squash , you can actually rewind to an earlier version of gitweb: $ git subtree merge --prefix=gitweb --squash gi…...terwards decide if the revision (possibly with the needed patch) passed the test and then rewind the tree to the pristine state. Finally the script should exit with the status o…...may have been a false-positive, so before starting the scan for the next resord, it will rewind to the location in the file directly after the 4-byte sequecce it just processed.…...rom stdin, since it may require data to be sent twice and then the client must be able to rewind. If the need should arise when uploading from stdin, the upload operation fails.…