Published Sep 10, 2020
[
 
]
You can undo git add
before commit with
git reset <file>
which will remove it from the current index (the “about to be committed” list) without changing anything else
You can use
git reset
without any file name to unstage all due changes.