Re: git rm --cached
- From
Matthieu Moy <matthieu.moy@imag.fr>
- Date
- Nov 4, 2007, 17:04 UTC
- Message-ID
- <vpq1wb6x7ps.fsf@bauges.imag.fr>
- In-Reply-To
- <20071102174140.vobtdjxfwsgoc040@intranet.digizenstudio.com>
Jing Xue <jingxue@digizenstudio.com> writes:
Show 5 quoted lines
> 1. I looked at the "index" as a staging area for _changes_ not files > themselves. So where 'man git-rm' says '--caches ... remove[s] the > paths only from the index, leaving working tree files.' I took it to > mean that it removes the changes on those paths, rather than staging a > new "path deletion" action for a later commit.
The index is a full snapshot of "what will be commited". The interesting parts of the index are usually the ones which differ from either HEAD or the working tree, but the index do contain everything.
-- Matthieu