[英]Github Windows: New branch created from command line not showing up on github.com
I created 2 new branches using the command line, and when I use the command 'git branch' I can see all of my branches in the window, but when I used the command 'git push' I get a message that says, "nothing to commit, working directory clean' and so I'm not seeing my new branches on github.com.我使用命令行创建了 2 个新分支,当我使用命令 'git branch' 时,我可以在窗口中看到我所有的分支,但是当我使用命令 'git push' 时,我收到一条消息,说“没有提交,工作目录清理',所以我没有在 github.com 上看到我的新分支。
Can anyone shed some light?任何人都可以透露一些信息吗?
Thanks!谢谢! Robin罗宾
你试过git push origin my_new_branch
吗?
The below command will work:以下命令将起作用:
git push origin devbranch git push origin devbranch
运行上述命令 git push origin dev 后,我收到此错误“远程:未找到存储库”。
I had a similar error in which i created and published a branch on one computer.我有一个类似的错误,我在一台计算机上创建并发布了一个分支。 But on another It wouldnt add the branch automatically (even though the git server had the new branch).但在另一个它不会自动添加分支(即使 git 服务器有新分支)。 I simply did a pull from shell rather than using the app's sync function.我只是从 shell 中提取,而不是使用应用程序的同步功能。 once I did the git pull
then it added the new branch and was able to be selected from the gui.一旦我做了git pull
然后它添加了新的分支并且能够从 gui 中选择。
I assume this is a bug我认为这是一个错误
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.