How do I pull missing file back into my branch

前端 未结 4 1321
甜味超标
甜味超标 2021-02-01 14:01

I have cloned git project into local git repository. Then I have done something nasty to one of the files and in that panic I deleted file physically from drive (rm style.

4条回答
  •  闹比i
    闹比i (楼主)
    2021-02-01 14:12

    Use git checkout. In your case:

    git checkout origin/master style.css
    

    This command will update the requested file from the given branch (here the remote branch origin/master).

    Hope this helps

提交回复
热议问题