문제

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?

도움이 되었습니까?

해결책

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

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top