Thread (1 message) 1 message, 1 author, 2016-06-15
  • (off-list ancestor, not in this archive)
  • Re: git rm --cached · Matthieu Moy <hidden> · 2016-06-15

Re: git rm --cached

From: Matthieu Moy <hidden>
Date: 2016-06-15 22:43:47

Jing Xue [off-list ref] writes:
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help