error: cannot lock ref.. 'refs/tags' exists; cannot create 'refs/tags/

前端 未结 7 1009
野性不改
野性不改 2021-01-31 02:10

I\'m getting a strange \"cannot lock ref\" error when trying to pull changes from github. I\'ve tried git gc, and looked around for similar errors but can\'t find a solution.

7条回答
  •  爱一瞬间的悲伤
    2021-01-31 02:47

    error: cannot lock ref 'refs/tags/v2.8': 'refs/tags' exists; cannot create 'refs/tags/v2.8' From github.com:k3it/qsorder

    Try deleting your local tag v2.8 and v2.9 then pull again.

    $ git tag -d v2.8 
    $ git tag -d v2.9
    
    $ git pull
    

    If you want to delete all local tags by a command:

    $ git tag | xargs git tag -d
    

提交回复
热议问题