How do I pull missing file back into my branch

送分小仙女□ 提交于 2019-12-02 18:50:07

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

neoneye

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

Go to the location of style.css (may be app/css/ )using console otherwise there will be pathspec error.

then execute :

git checkout origin/master style.css

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 
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!