Uso rebase interactivo:
git rebase -i SHA-OF-FIRST-COMMIT-IN-BRANCH
que abrirá algo como esto en $ EDITOR:
pick 8ac4783 folders and folders
pick cf8b1f5 minor refactor
pick 762b37a Lots of improvement. Folders adn shit.
pick 3fae6e1 Be ready to tableview
pick b174dc0 replace folder collection view w/ table view
pick ef1b65b more finish
pick ecc407f responder chain and whatnot
pick 080a847 play/pause video
pick 6719000 wip: movie fader
pick c5f2933 presentation window fade transition
# Rebase e6f77c8..c5f2933 onto e6f77c8
#
# Commands:
# p, pick = use commit
# e, edit = use commit, but stop for amending
# s, squash = use commit, but meld into previous commit
#
# If you remove a line here THAT COMMIT WILL BE LOST.
# However, if you remove everything, the rebase will be aborted.
#
Así que lo que hace es simplemente para eliminar la línea que contiene la depuración cometen, se el archive y cierre su editor, y git le dirá algo como:
Successfully rebased and updated refs/heads/master.
Ahora yo puedes simplemente fusionarte en esa rama para dominar.
ACTUALIZACIÓN: Cabe señalar que la alteración de la historia con rebase
debería solo ocurrir en las ramas privadas. Si esta rama ha estado expuesta al público, use git revert
según lo propuesto por otro respondedor.
agradable .. y no es una buena manera de llegar al PRIMER-COMPROMISO-EN-RAMA SHA-DE-? –
@DaveVogt sí! Ver http://stackoverflow.com/questions/1527234/finding-a-branch-point-with-git – boycy