GIT add revert in my case (keep changes)
You can use git reset
git reset -- FILE_NAME
will do it.
See the git reset
manual:
This means that
git reset <pathspec>
is the opposite ofgit add <pathspec>
you could use
git reset --mixed -- <filename>
if you use --hard, you would discard all your changes.
git stash save
git stash apply
they will all be unstaged