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
708 0
|
3月前
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
|
4月前
|
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 错误处理
38 0
|
12月前
cancal报错 config dir not found
cancal报错 config dir not found
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
663 0
error: Two output files share the same path but have different contents: node_modules\.vite\..xxx.js
|
PyTorch 算法框架/工具
THCudaCheck FAIL file=/pytorch/aten/src/THC/THCGeneral.cpp line=405 error=11 : invalid argument
THCudaCheck FAIL file=/pytorch/aten/src/THC/THCGeneral.cpp line=405 error=11 : invalid argument
192 0
THCudaCheck FAIL file=/pytorch/aten/src/THC/THCGeneral.cpp line=405 error=11 : invalid argument
|
JavaScript 索引
js中exec,test,match,search,split等方法的使用
exec:对string进行正则处理,并返回匹配结果.array[0]为原字符串,array[i]为匹配在整个被搜索字符串中的位置。 test:测试string是否包含有匹配结果,包含返回true,不包含返回false。
65 0
src refspec xxx does not match any
src refspec xxx does not match any
sed: 1: “s/os.remove(“/xx/xxx. ...“: invalid command code f
sed: 1: “s/os.remove(“/xx/xxx. ...“: invalid command code f