Undo git add
How to undo/remove file after 'git add'
Lets say you mistakenly added a file using the following command.
git add abc.txtTo undo adding run the following.
git reset HEAD abc.txtDont do git reset, you will loose changes
git reset abc.txt < ---- DONT DO THIShttps://stackoverflow.com/questions/348170/how-do-i-undo-git-add-before-commit
Last updated
Was this helpful?