Threads for landongrindheim

  1. 2

    I have to wonder why unstage isn’t defined as unstage = reset HEAD. That would save keystrokes and would mean you could just type git unstage FILE.txt. Is there a situation where you want to unstage to something other than HEAD?

    1. 3

      HEAD is actually the default <tree-ish>/<commit> argument, so git reset FILE.txt and git reset HEAD FILE.txt should produce the same results.

      To your question, there might be a situation in which one might want to unstage something other than HEAD, but I’ve never encountered it.

      1. 2

        (misclick, sorry)