Antw: Re: Surprising semantics of "git add file"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>> Andreas Schwab <schwab@xxxxxxxxxxxxxx> schrieb am 05.05.2019 um 22:31 in
Nachricht <87o94gbq46.fsf@xxxxxxxxx>:
> On Mai 05 2019, "Ulrich Windl" <Ulrich.Windl@xxxxxx‑regensburg.de> wrote:
> 
>> After that a "git diff ‑‑cached file" just shows the changes added 
> interactively, but when I "git add file" to commit those changes), even the

> unstaged changes from file are committed.
> 
> Did you really mean "git add" here?  It doesn't commit, it adds to the 
> index.

Sorry, you are right "git commit file" I meant. I guess I was distracted when
writing that. Otherwise it wouldn't make any sense.

> 
> Andreas.
> 
> ‑‑ 
> Andreas Schwab, schwab@linux‑m68k.org 
> GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
> "And now for something completely different."






[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux