# git commit question

2 messages from 2005-08-29 to 2005-08-29. Participants: Ben Greear, Junio C Hamano.
Thread: https://gitlist.dev/t/1691

## Ben Greear, 2005-08-29 19:58

Subject: git commit question
Message-ID: <431368D0.40604@candelatech.com>
URL: https://gitlist.dev/e/431368D0.40604%40candelatech.com

```
I started a fresh kernel git repository since I buggered
my old one...

I branched, applied patch, and ran git-update-cache.

Now, when I run git commit, I see a long list of files on which
evidently I need to run git-update-cache.

Is there a way to tell it to add all modified files (that git commit mentions)
to the cache for commit, or do I have to not be so lazy and
paste them all on the cmd line?

Thanks,
Ben

-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com

```

## Junio C Hamano, 2005-08-29 20:36

Subject: Re: git commit question
Message-ID: <7vd5nwa3as.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7vd5nwa3as.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <431368D0.40604@candelatech.com>

```
Ben Greear <greearb@candelatech.com> writes:

> Is there a way to tell it to add all modified files (that git commit mentions)
> to the cache for commit, or do I have to not be so lazy and
> paste them all on the cmd line?

Perhaps 'git commit -a' is what you want (it is documented;
http://www.kernel.org/pub/software/scm/git/docs/, especially
git-commit-script.html there).

```
