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

From: Andreas Schwab <[email-masked]>
Date: Sun, 05 May 2019 22:31:05 +0200

On Mai 05 2019, "Ulrich Windl" <[email-masked]> 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.

Andreas.

-- 
Andreas Schwab, [email-masked]
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."