sainture
11/12/2017 - 10:27 PM

git reset

Unstaging a staged file

# For example, let’s say you’ve changed two files and want to commit them as two separate changes, but you accidentally type git add * and stage them both. How can you unstage one of the two?

  git reset HEAD <filename>
  git reset HEAD CONTRIBUTING.md