Re: Git terminology: remote, add, track, stage, etc.
On 21 Oct 2010, at 13:20, Drew Northup wrote:
> Ok, so what will "git stage" do when a change of a file is already
> staged and it is executed again (on new changes)?
Presumably what it already does: nothing. But one could argue that the more public-relations minded command “git stage” should give better feedback. Like so:
Show 7 quoted lines
> $ git commit
> $ ... edit A.txt ...
> $ git stage B.txt
> git stage: Did nothing. No uncommitted changes to stage in B.txt.
> $ git stage A.txt
> $ git stage A.txt
> git stage: Did nothing. Changes in A.txt already staged. Use `git diff --staged A.txt` to see them.