Hi, Am Sonntag, 20. Dez 2009, 01:06:46 +0100 schrieb Johan 't Hart: > Bertram Scharpf schreef: >> I fetched a line from the shell's history and accidentally hit >> enter before editing it. Then I had commited some work that was >> not completed. Is there a way to get rid of that commit as if it >> never were there? > > Try: > git reset --soft HEAD~1 > > You could also: > git commit --amend ... % git fsck --lost-found dangling commit 6abc221327e896c850c56dafae92277bcfe68e2b It is still there. This is the one I want to delete. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html