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,下面的命令不可以。因為同樣是因為有 matches more than one
git push origin :branch-name

 

刪除tag:

git tag -d tagName

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM