Links

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.txt
To undo adding run the following.
git reset HEAD abc.txt
Dont do git reset, you will loose changes
git reset abc.txt < ---- DONT DO THIS