FETCH_HEAD reference not updating correctly after “git fetch”

前端 未结 3 1049
予麋鹿
予麋鹿 2021-02-08 22:19

I have a local repository that pulls from a remote one. Running git pull as well as git fetch; git merge FETCH_HEAD used to perform exactly the same ac

3条回答
  •  清歌不尽
    2021-02-08 23:10

    Just try forcing your head to point to the latest commit / push which has been done.

    Use this on your GIT Repository:

    git reset --hard HEAD@{1}
    

    Hoping this can solve your problem, taking this to a point where it used to work perfectly as before.

提交回复
热议问题