[英]How to create local for remote branch and push changes to remote using GIT
[英]Can I create a empty branch on a remote using git? Is there Anyway I can atleast create a local empty branch and push it to remote?
由于它是新的本地分支(使用--orphan
创建),因此在创建后仍需要将其推送:
git -c "push.default=current" push -u origin newBranch
请参阅“ 为什么需要显式推送新分支? ”。
对于-c
选项,请参阅“ 就是他们的方式来设置push.default
到current
只对当前推 ”。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.