git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* unclear description of git-rm on kernel.org
@ 2009-01-04 22:10 alec resnick
  2009-01-04 22:35 ` Miklos Vajna
  0 siblings, 1 reply; 2+ messages in thread
From: alec resnick @ 2009-01-04 22:10 UTC (permalink / raw)
  To: git

Hi!

I was trying to remove a number of files from a git repo I had.  I
read http://kernel.org/pub/software/scm/git/docs/v1.4.4.4/git-rm.html
which I interpreted to mean that git-rm removed only from the index,
and not from the working tree.  In retrospect, the short description
is clear: "git-rm - Remove files from the working tree and from the
index," but I was confused by the language:
"<file>…

    Files to remove from the index and optionally, from the working
tree as well.
-f

    Remove files from the working tree as well as from the index."

Because of "optionally" and the very existence of the "-f" option
suggests that you have to do something extra to ask git-rm to mess
with the working tree.

The manpage is much clearer, and while I recovered the files I
accidentally removed simply with git checkout, I suggest that the
webpage be made a bit clearer.  In particular, adding info about how
to _only_ remove files from the index would be helpful.

I'd be happy to make the changes to the webpage; I don't know how to
do that or if it's appropriate.

Thanks!


-a.

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

end of thread, other threads:[~2009-01-04 22:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-04 22:10 unclear description of git-rm on kernel.org alec resnick
2009-01-04 22:35 ` Miklos Vajna

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).