我正试图推动一个新的本地分支机构 product-0.2送到已存在同名标签的远程(但分支本身不存在)
git push -v --tags --set-upstream origin product-0.2:product-0.2 
Pushing to https://****@github.com/mycompany/product.git
error: src refspec product-0.2 matches more than one.
error: failed to push some refs to 'https://****@github.com/mycompany/product.git'
与:
git push origin product-0.2:/refs/heads/product-0.2 
尽管另一种方法可行,例如创建一个分支 product-0.1,然后在其上提交然后应用一个标记product-0.1。
有些人通过在本地删除有冲突的标签,然后推送分支,然后检索远程标签来解决此问题,但这似乎既麻烦又容易出错。
如何以最小的麻烦创建分支?
感谢您的输入
                  可以尝试git push origin product-0.2:product-0.2
                
                
                  
                    —
                    vpatil 2012年
                    
                  
                
              
refs/heads/product-0.2:refs/heads/product-0.2,即没有前导斜线,并在本地提供完整的refspec。