How to delete all added files in GIT

By mistake, I used git add . so all files are added to the viewport. I want to delete all these files from the viewport.

I tried

 git clean -fdx git clean -df 

but it does not work.

+5
source share
2 answers

you need to use git reset --mixed .
--mixed if to clear the area of ​​the scene / cache / index.

+4
source

If so, then git reset HEAD will do the job

+1
source

All Articles