I have accidentally run git clean -df. It removed my files from my current commit, which I had yet to push. Now, in git status, those files are mar
git clean -df
git status
git clean only untracked files and not committed ones.
git clean
You might have done other operations if you see D as the status for already committed files.
D
You get back those files, do:
git checkout .
or
git reset --hard