From: "alec resnick" <alec@sproutward.org>
To: git@vger.kernel.org
Subject: unclear description of git-rm on kernel.org
Date: Sun, 4 Jan 2009 17:10:11 -0500 [thread overview]
Message-ID: <62a60dd90901041410j283866e5ja39c3bda447fed36@mail.gmail.com> (raw)
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.
next reply other threads:[~2009-01-04 22:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-04 22:10 alec resnick [this message]
2009-01-04 22:35 ` unclear description of git-rm on kernel.org Miklos Vajna
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=62a60dd90901041410j283866e5ja39c3bda447fed36@mail.gmail.com \
--to=alec@sproutward.org \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).