git创建分支并提交到远程
作者:互联网
1.本地创建分支并切换分支
git checkout -b develop
2. 将develop分支推送到远程
git push origin develop:develop
3. 建立本地至上游(远程)分支的链接,这样代码才能提交到远程
git branch --set-upstream-to=orgin/develop
4.取消对develop分支的跟踪
(需要取消跟踪时才操作)
git branch --unset-upstream develop
标签:git,develop,提交,branch,upstream,远程,分支 来源: https://www.cnblogs.com/BinZone/p/15992986.html