unclear description of git-rm on kernel.org

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!
I was trying to remove a number of files from a git repo I had.  Iread http://kernel.org/pub/software/scm/git/docs/v1.4.4.4/git-rm.htmlwhich I interpreted to mean that git-rm removed only from the index,and not from the working tree.  In retrospect, the short descriptionis clear: "git-rm - Remove files from the working tree and from theindex," but I was confused by the language:"<file>…
    Files to remove from the index and optionally, from the workingtree 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" optionsuggests that you have to do something extra to ask git-rm to messwith the working tree.
The manpage is much clearer, and while I recovered the files Iaccidentally removed simply with git checkout, I suggest that thewebpage be made a bit clearer.  In particular, adding info about howto _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 todo that or if it's appropriate.
Thanks!

-a.��.n��������+%������w��{.n��������n�r������&��z�ޗ�zf���h���~����������_��+v���)ߣ�m


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux