Git reference conflicts between branches (unable to update local branch)

后端 未结 2 906
忘了有多久
忘了有多久 2021-02-18 23:54

I\'m experiencing the following error while trying to git fetch a remote branch:

error: Ref refs/origin/remotes/my-branch is at s

2条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-19 00:39

    For other googlers who get here: this is also another less drastic approach:

    Navigate to .git\refs\remotes\origin directory - delete the master file,

    Then do another git pull and it synchronizes successfully.

提交回复
热议问题