Question

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

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top