git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git rm --cached and pull semantics
@ 2010-01-16 16:50 list
  2010-01-17 11:42 ` Matthieu Moy
  0 siblings, 1 reply; 5+ messages in thread
From: list @ 2010-01-16 16:50 UTC (permalink / raw)
  To: git

Hello everyone,

I'm trying to manage and distribute a subset of /etc with git.
Therefore, I have * in .gitignore and use git add -f to add files. Now
sometimes I want to un-track a file that has been in previous commits,
but naturally I don't want the file deleted. I just want git to ignore
it again. As I read it, the way to do that is "git rm --cached $file".
On the local working tree, that works as expected, but when some remote
machine pulls a subsequent commit, it deletes the file from its working
tree. But I just want git to ignore the file again, just as it does in
the origin repo. How can I do that?

thanks for your time

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-01-18  2:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-16 16:50 git rm --cached and pull semantics list
2010-01-17 11:42 ` Matthieu Moy
2010-01-17 22:50   ` list
2010-01-18  0:06     ` Randal L. Schwartz
2010-01-18  2:31       ` list

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).