How do I pull missing file back into my branch

前端 未结 4 1366
甜味超标
甜味超标 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条回答
  •  终归单人心
    2021-02-01 14:06

    If you want to restore all the missing files from the local repository

    git checkout .
    

    Warning: This method also restores all changed files and drops all the changes

提交回复
热议问题