Unstage All Staged Changes in Git

By: Cam Wohlfeil
Published: 2019-07-24 1120 EDT
Category: Solutions

Git is a complex beast, but luckily for me there's an easy way to undo git add --all without losing the changes: git reset.

There are far more options available, such as clearing the changes on disk to the last commit, check out more here: https://docs.gitlab.com/ee/topics/git/numerous_undo_possibilities_in_git/