提交本地分支到coding某个分支(不是master 分支)时提示分支不存在,mac命令行查了所有分支也没看到这个分支,但登录coding 时可以看到这个分支。如何提交本地分支到coding上的这个分支(不是master 分支)?
人生最曼妙的风景,竟是内心的淡定与从容!
git push origin test:test
In addition, git fetch will update the local branch to be consistent with the server
Is the coding branch remote? If it is remote, you should check it out locally first and then submit it.
Forced recommendation will cover the branches on the server
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
git checkout branchName
git branch
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.
git bash
push
git checkout yourname
git push origin test:test
In addition, git fetch will update the local branch to be consistent with the server
Is the coding branch remote? If it is remote, you should check it out locally first and then submit it.
Forced recommendation will cover the branches on the server
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 itIn
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.