Git - deleted some files locally, how do I get them from a remote repository

前端 未结 6 1258
星月不相逢
星月不相逢 2020-12-22 20:42

I\'ve deleted some files on my PC, how do I download them again?

Pull says: \"Already up-to-date\".

6条回答
  •  醉话见心
    2020-12-22 20:52

    You need to check out a previous version from before you deleted the files. Try git checkout HEAD^ to checkout the last revision.

提交回复
热议问题