2011-02-14 61 views
3

git GUI提交工具在點擊「提交」後關閉 - 有什麼方法可以保持它打開嗎?有時候我想多次提交,並且不得不重新提交提交工具會增加額外的不必要的步驟。 (我使用msysgit在Windows XP中,如果它很重要。)如何防止提交後關閉git commit工具?

+2

你確定你是'git gui'而不是'git citool'嗎? 'git citool'在一次提交後關閉。 'git gui'一直在運行。 – 2011-02-14 07:29:45

回答

5

確保您運行git gui而不是git citool。單個提交後關閉git citoolgit gui將繼續運行,並允許您執行多個提交。

1

FWIW,我有一個別名設置爲反覆調用git citool,只要仍然有變化,窗口沒有提交沒有關閉。

[alias] 
ci = "!while ! git diff --quiet && git citool; do true; done" 

使用這種方法在git gui的好處是一切都提交後,你會自動回到提示。