문제

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

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top