32

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.

Parker Coates
  • 8,520
  • 3
  • 31
  • 37
baash05
  • 4,394
  • 11
  • 59
  • 97

2 Answers2

63

Yes,

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

Or go to commit -> stage to commit

Sam Saffron
  • 128,308
  • 78
  • 326
  • 506
5

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!

ntjess
  • 570
  • 6
  • 10
  • is there a way to add multiple commands on a single name? – MetaSnarf Apr 06 '21 at 00:54
  • @MetaSnarf Indeed, bash syntax can be used to merge multiple commands. So `&&` can be placed between each command, where each next command only runs if the previous succeeds. Example: `git add . && git commit -m "test commit"` will both stage and commit your current changes with the message "test commit" – ntjess Apr 06 '21 at 13:16