Re: Stashing untracked files
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Sep 29, 2007, 22:00 UTC
- Message-ID
- <Pine.LNX.4.64.0709292259070.28395@racer.site>
- In-Reply-To
- <46FEC799.30803@theory.org>
Hi,
[please do not cull me from the Cc: list, especially if you quote me.]
On Sat, 29 Sep 2007, Neil Macneale wrote:
> Performing an add would require me to remove those file from the index > at a later date in the event that I don't want to commit them on the > next commit.
Wrong.
If you "git add <new-file>" and then "git stash", it will no longer have the file in the index. Instead, the index will agree with the HEAD (which does not have <new-file>).
Ciao, Dscho