error: src refspec XXX matches more than one

简介: error: dst refspec v1.0 matches more than one. error: failed to push some refs to '' 错误原因是 branch名和tag名有相同的,在执行git push origin :branchName时,就会报上面的错 删除branch: git branch -r -d origin/branch-name //只能使用这个命令来删除branch,下面的命令不可以。

 

error: dst refspec v1.0 matches more than one.
error: failed to push some refs to ''

错误原因是 branch名和tag名有相同的,在执行git push origin :branchName时,就会报上面的错

删除branch:

git branch -r -d origin/branch-name  //只能使用这个命令来删除branch,下面的命令不可以。因为同样是因为有 matches more than one
git push origin :branch-name

 

删除tag:

git tag -d tagName

 

相关文章
CMake Error: The source “xxx“ does not match the source “yyy“ used to generate cache. Re-run cmake
CMake Error: The source “xxx“ does not match the source “yyy“ used to generate cache. Re-run cmake
874 0
|
5月前
No rule to make target ‘.xxxxxxxx‘, needed by ‘debug/xxxx.cpp‘. Stop.
No rule to make target ‘.xxxxxxxx‘, needed by ‘debug/xxxx.cpp‘. Stop.
Invalid mapping pattern detected: /download/{{fileName}} ^Not allowed to nest variable c
Invalid mapping pattern detected: /download/{{fileName}} ^Not allowed to nest variable c
|
6月前
|
Java
No tag [else] defined in tag library imported with prefix [c]] with root cause
No tag [else] defined in tag library imported with prefix [c]] with root cause 错误处理
47 0
|
6月前
|
计算机视觉 Python
error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'
error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'
166 0
error: Two output files share the same path but have different contents: node_modules\.vite\..xxx.js
error: Two output files share the same path but have different contents: node_modules\.vite\..xxx.js
714 0
error: Two output files share the same path but have different contents: node_modules\.vite\..xxx.js
|
JavaScript 索引
js中exec,test,match,search,split等方法的使用
exec:对string进行正则处理,并返回匹配结果.array[0]为原字符串,array[i]为匹配在整个被搜索字符串中的位置。 test:测试string是否包含有匹配结果,包含返回true,不包含返回false。
73 0
src refspec xxx does not match any
src refspec xxx does not match any
102 0
sed: 1: “s/os.remove(“/xx/xxx. ...“: invalid command code f
sed: 1: “s/os.remove(“/xx/xxx. ...“: invalid command code f