转载自:https://blog.csdn.net/u013749540/article/details/78295420
创建本地分支看这里 https://blog.csdn.net/torpidcat/article/details/105550496
推送本地分支local_branch到远程分支 remote_branch并建立关联关系
a.远程已有remote_branch分支并且已经关联本地分支local_branch且本地已经切换到local_branch
git push
b.远程已有remote_branch分支但未关联本地分支local_branch且本地已经切换到local_branch
git push -u origin/remote_branch
c.远程没有remote_branch分支并,本地已经切换到local_branch
git push origin local_branch:remote_branch

本文介绍了如何将本地分支(local_branch)推送到远程分支(remote_branch),包括不同情况下使用的git命令,如远程分支已存在但未关联本地分支或远程分支不存在等场景。

6万+

被折叠的 条评论
为什么被折叠?



