今天在使用 Git push 代码时遇到一个报错:

error: src refspec master matches more than one.
error: failed to push some refs to 'git@127.0.0.1:yn/enh.git'

 

出现这个错误是因为有一个与当前提交分支同名的标签

 

查看标签列表:

git tag

 

删除这个标签(确定标签无用时):

git tag -d <tag-name>

 

 

再次 push 就 ok 了

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-14
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-08
  • 2021-12-02
  • 2021-12-16
  • 2021-04-19
相关资源
相似解决方案