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

前端 未结 6 1268
星月不相逢
星月不相逢 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 21:01

    If you have deleted multiple files locally but not committed, you can force checkout

    $ git checkout -f HEAD
    

提交回复
热议问题