By mistake I used git add .
so all files are added in staring area. I want to remove all those files from staring area.
I tried
git clean -fdx
git clean -df
but it isn't worked.
By mistake I used git add .
so all files are added in staring area. I want to remove all those files from staring area.
I tried
git clean -fdx
git clean -df
but it isn't worked.
you need use the git reset --mixed
.
The --mixed
if for clearing the stage/cache/index area.
You can also do like this:
git reset . <-- will remove files from current index
git reset <filename> <-- for a specific file.