5

I have a ton of new files to commit. Clicking each one in git gui (Windows) to stage is annoying.

How can I can I commit a whole bunch of files at once?

Paŭlo Ebermann
  • 73,284
  • 20
  • 146
  • 210
user94154
  • 16,176
  • 20
  • 77
  • 116

6 Answers6

18

A nice answer from @Sam Saffron to a similar question states

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

Or go to commit -> stage to commit

Community
  • 1
  • 1
nulltoken
  • 64,429
  • 20
  • 138
  • 130
11

Don't use the gui ^^ ... a git add . will add all new files to the index.

tanascius
  • 53,078
  • 22
  • 114
  • 136
5

I think if you high light them all and type ctrl+t, then you should stage all the selected files, although I find one normally gets left over for some unknown reason.

Matt Ellen
  • 11,268
  • 4
  • 68
  • 90
2

You could have a look at GIT Extensions for a different GUI - I find it pretty easy to use.

Paddy
  • 33,309
  • 15
  • 79
  • 114
1

In Git Gui, You can stage all files at once with menu option:

commit > Stage changed files to commit

or shortcut ctrl + i

yurislav
  • 1,119
  • 12
  • 17
1

assuming you have cygwin installed, you can type git commit -m 'whatever' after you have added the changes to the staging area. To do a mass add do the following: git add .

this is, of course, done in the command prompt

Jonathan Mayhak
  • 12,376
  • 3
  • 21
  • 17