search

Home  >  Q&A  >  body text

ios - 如何提交本地分支到coding某个分支(不是master 分支)

提交本地分支到coding某个分支(不是master 分支)时提示分支不存在,mac命令行查了所有分支也没看到这个分支,但登录coding 时可以看到这个分支。如何提交本地分支到coding上的这个分支(不是master 分支)?

黄舟黄舟2771 days ago479

reply all(5)I'll reply

  • ringa_lee

    ringa_lee2017-04-18 09:49:53

    git push origin test:test

    In addition, git fetch will update the local branch to be consistent with the server

    reply
    0
  • 迷茫

    迷茫2017-04-18 09:49:53

    Is the coding branch remote? If it is remote, you should check it out locally first and then submit it.

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-18 09:49:53

    Forced recommendation will cover the branches on the server

    reply
    0
  • 阿神

    阿神2017-04-18 09:49:53

    Are you running git in the terminal? If so, you need to use git checkout branchName切换到该分支,然后你在终端运行git branch before you can see the branch for the first time, try it

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-18 09:49:53

    In git bash中切换分支然后pushgit checkout yourname, Sloris will switch to your branch, just submit it here. Don't know if this is the case for you.

    reply
    0
  • Cancelreply