今天在2.1.2分支上修改完xxl-job的数据库为oracle之后想要提交,结果报错

报错信息

Failed with error: HttpRequestException encountered. dst refspec 2.1.2 matches more than one. failed to push some refs to 'https://github.com/sunjianbo/xxl-job.git'

error

原因

翻译一下就是你想要提交到的目标不只存在一个,git不知道你要提交到哪一个了
那么分支名称肯定是不会出现重复的,那就只可能是分支名和tag名冲突了

$ git tag

查看发现果然也存在一个叫做2.1.2的tag

解决方案

删除本地标签

$ git tag -d 2.1.2

删除远程标签

$ git push origin :refs/tags/2.1.2

顺利提交
pushed

附git tag常用操作速查:

https://blog.csdn.net/happycxz/article/details/78893690