提交本地分支到coding某个分支(不是master 分支)时提示分支不存在,mac命令行查了所有分支也没看到这个分支,但登录coding 时可以看到这个分支。如何提交本地分支到coding上的这个分支(不是master 分支)?
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
迷茫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.
阿神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
伊谢尔伦2017-04-18 09:49:53
In git bash
中切换分支然后push
,git checkout yourname
, Sloris will switch to your branch, just submit it here. Don't know if this is the case for you.