Re: "git commit -a" Doesn't Add New Files. Why?
- From
Jon Forrest <nobozo@gmail.com>
- Date
- May 28, 2025, 23:06 UTC
- Message-ID
- <550e4935-6ae6-44d8-bde2-d61db3656830@gmail.com>
- In-Reply-To
- <xmqqjz60pe65.fsf@gitster.g>
On 5/28/25 3:24 PM, Junio C Hamano wrote:
Show 5 quoted lines
> But `git commit -a` would not change, even if it won't add cruft > with well curated .gitignore files. That will be a terrible > backward incompatible change for those who expect it only deals with > the files it knows about (including the one that is not yet tracked > but its presence is known via "git add -N").
Just to make it clear - I was only discussing adding a '-A' (capital A) option to git commit. Its current behavior with '-a' (small a) wouldn't change.
Jon