刪除本地文件后,想從遠程倉庫中從新Pull最新版文件。
Git提示:up-to-date,但未得到刪除的文件
原因:當前本地庫處於另一個分支中,需將本分支發Head重置至master.
git checkout master
git reset --hard
git 強行pull並覆蓋本地文件
git fetch --all
git reset --hard origin/master
git pull
作者:haokeed
鏈接:https://www.jianshu.com/p/648e2046c5ba