How do I stage all files at once in Git Gui?

谁说胖子不能爱 提交于 2019-12-28 16:30:30

问题


I have just created a GIT on a folder. I now want to add the contents of that folder by "staging" all the files. In the GUI, is there a way to select all the files. I have well over 4000 files and clicking one at a time is proving to be a bit of a pain.


回答1:


Yes,

Select the items (select top one hit shift, select bottom one) and hit CTRL T

Or go to commit -> stage to commit




回答2:


Quite late, but one method is to add an option in the 'Tools' menu.

  1. Click 'Tools'>Add...
  2. Name it whatever you want (I chose 'add all')
  3. In the 'Command' field, type git add *
  4. Optionally check the boxes to remove a dialog window, output window, and global configuration.
  5. Click the Add button in the bottom right.

Now, click Tools>Add all and all changes will be staged. Hope this helps!




回答3:


git add *

or just

git commit -a -m "your message"

Don't mess around with the GUI.



来源:https://stackoverflow.com/questions/1344908/how-do-i-stage-all-files-at-once-in-git-gui

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!