如何在Git Gui中一次暂存所有文件?

时间:2009-08-28 03:38:19

标签: git staging git-gui

我刚在一个文件夹上创建了一个GIT。我现在想通过“暂存”所有文件来添加该文件夹的内容。在GUI中,有没有办法选择所有文件。我有超过4000个文件,一次点击一个文件证明有点痛苦。

3 个答案:

答案 0 :(得分:52)

选择项目(选择前一个命中班次,选择下一个)并点击 CTRL T

或者去提交 - >提交阶段

答案 1 :(得分:0)

很晚了,但是一种方法是在“工具”菜单中添加一个选项。

  1. 点击“工具”>“添加...”
  2. 随意命名(我选择了“全部添加”)
  3. 在“命令”字段中,输入Uncaught Error: Option ‘multiple’ is not allowed for Select2 when attached to a <select> element. at String.<anonymous> (select2.full.min.js?ver=1.0.5:21) at Function.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,moxiejs,plupload&ver=4.9.9:2) at d.prepareOpts (select2.full.min.js?ver=1.0.5:21) at d.prepareOpts (select2.full.min.js?ver=1.0.5:22) at d.init (select2.full.min.js?ver=1.0.5:21) at HTMLSelectElement.<anonymous> (select2.full.min.js?ver=1.0.5:22) at Function.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,moxiejs,plupload&ver=4.9.9:2) at a.fn.init.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,moxiejs,plupload&ver=4.9.9:2) at a.fn.init.a.fn.select2 (select2.full.min.js?ver=1.0.5:22) at initialize (acf-input.min.js?ver=5.7.12:3)
  4. (可选)选中相应的框以删除对话框窗口,输出窗口和全局配置。
  5. 单击右下角的git add *按钮。

现在,单击“工具”>“全部添加”,所有更改都将上演。希望这可以帮助!

答案 2 :(得分:-4)

git add *

或只是

git commit -a -m "your message"

不要乱用GUI。