git 命令
December 02, 2015
290
获取远程分支到本地
git checkout -b newSDK_stable origin/newSDK_stable
提交本地分支到远程并创建
git push -u ios_merge
git push origin local_branch:remote_branch
这个操作,local_branch必须为你本地存在的分支,remote_branch为远程分支,如果remote_branch不存在则会自动创建分支。
类似,git push origin :remote_branch,local_branch留空的话则是删除远程remote_branch分支。
- 本文作者:Shuibo
- 本文链接:https://shuibo.me/2015/12/02/Git-command.html
- 版权声明:本博客所有文章均采用 BY-NC-SA 许可协议,转载请注明出处!
查看评论