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 …