Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 4
    Mind that the --cached is a really important part here.
    – takeshin
    Commented Apr 12, 2013 at 12:21
  • 1
    -1; no, this doesn't un-stage the file, it stages a deletion of the file (without actually deleting it from your work tree).
    – Mark Amery
    Commented Oct 30, 2015 at 23:42