How do I pull missing file back into my branch

前端 未结 4 1367
甜味超标
甜味超标 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:27

    I intentionally deleted some files from a clone --depth 1 and this brought the main files, and submodule ones, back.

    git checkout . -f && git submodule update --checkout -f 
    

提交回复
热议问题