git status for cloned repository shows file deleted

You have probably used git fast-import to fill your repository with the cvs data. This will modify the data structures inside your .git subdirectories but it will not create a working checkout.

So git status "thinks" that you have deleted ALL your files and that the next commit will remove them from the repository.

Just do git reset --hard to reset your working copy to a clean checkout from your master branch.


Just try below command. It worked for me.

git checkout -f HEAD

Tags:

Git