git status for cloned repository shows file deleted

前端 未结 4 1802
无人及你
无人及你 2020-12-16 18:42

I have migrated a cvs repository to git repository and it is in the server. In my local I tried to clone that repository. It got cloned. But when I checked the git status it

4条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-16 19:07

    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.

提交回复
热议问题