(Solved) How do I undo ‘git add’ before commit?

Undo git add for uncommitted changes with: git reset <file> That will remove the file from the current index (the “about to be committed” list) without changing anything else. To unstage all changes for all files: git reset In old versions of Git, the above commands are equivalent to git reset HEAD <file> and git … Read more