The git GUI commit tool c开发者_JAVA百科loses after clicking "commit" - is there any way to keep it open? Sometimes I want to commit multiple times, and having to reopen the commit tool adds an extra unnecessary step. (I'm using msysgit on Windows XP, if it matters.)
Make sure you run git gui
and not git citool
. git citool
closes after a single commit. git gui
keeps running and lets you do more than one commit.
FWIW, I have an alias set up to repeatedly invoke git citool
as long as there are still changes and the window wasn't closed without making a commit.
[alias]
ci = "!while ! git diff --quiet && git citool; do true; done"
The benefit of using this approach over git gui
is that you automatically come back to the prompt after everything is committed.
精彩评论