Andreas Ericsson <ae@op5.se> writes: > Incidentally though, is there any way to make a commit completely go > away without resetting the files? I am not sure if this is what you are looking for, but after I make a commit and find a mistake (either in the checked-in files or commit log message), I do this: $ git reset --soft HEAD^ ... fix the checked-in files, maybe do git-add files that ... I forgot to add when I made the last commit. $ git commit -a -c ORIG_HEAD ;# edit commit log, too. Soft reset leaves the working tree files intact and just rewinds the .git/HEAD to whatever commit you specify, and as a side effect stores the original .git/HEAD in .git/ORIG_HEAD. The lowercase -c flag to git-commit is "bring the commit log editor, initialized with the commit log message from that commit". - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.htmlReceived on Wed Nov 02 20:27:36 2005
This archive was generated by hypermail 2.1.8 : 2005-11-02 20:27:40 EST