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.

12
  • 57
    Starting with Git v1.8.4, all the answers below that use HEAD or head can now use @ in place of HEAD instead. See this answer (last section) to learn why you can do that.
    – user456814
    Commented Jul 26, 2013 at 2:04
  • 5
    I made a little summery which shows all ways to unstage a file: stackoverflow.com/questions/6919121/… Commented Apr 26, 2014 at 12:09
  • 8
    If you use Eclipse, it is as simple as unchecking the files in the commit dialogue box
    – Hamzahfrq
    Commented Nov 17, 2016 at 12:49
  • 2
    This is a great resource straight from Github: How to undo (almost) anything with Git Commented Feb 3, 2017 at 21:13
  • 4
    Before you post a new answer, consider there are already 25+ answers for this question. Make sure that your answer contributes what is not among existing answers Commented Jun 15, 2017 at 15:29