Question

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?

Was it helpful?

Solution

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

OTHER TIPS

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

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.

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

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

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

commit > Stage changed files to commit

or shortcut ctrl + i

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top