这样做有什么区别:
git push -f origin my-branch:my-branch
and
git push origin +my-branch:my-branch
?
这是实现同一目标的两种语法。
除了那个git push --force
当你可以使用don't指定任何引用规范(意味着您想要将当前分支推送到远程匹配名称分支)。
它比以下更容易:
git push origin +yourBranch
,正如在Git 社区书籍 http://book.git-scm.com/3_distributed_workflows.html.
See "为什么“git push helloworld +master:master”而不是“git Push helloworld”? https://stackoverflow.com/questions/1475665/why-git-push-helloworld-mastermaster-instead-of-just-git-push-helloworld”作为说明。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)