git gui - in which file is the [tmp] commit message stored?

959 views Asked by At

When I fire up git gui I see the last commit message I wrote - sometimes I loose it (for instance when I hit amend commit too hurriedly). I mostly work in Dropbox however so I am able to rollback (or examine) files there. So in which file is the commit message stored ? Is it in .git or someplace else ?

I am on windows (7 or XP depends) - hopefully this is system independent

1

There are 1 answers

5
AudioBubble On BEST ANSWER

git-gui creates a .git/GITGUI_BCK temp file to store the commit message as you're editing it.

If you close git-gui without committing, the commit message will be moved to .git/GITGUI_MSG.

The temp files is removed after committing.