Github Windows: 从命令行创建的新分支未显示在 github.com

Github Windows: New branch created from command line not showing up on github.com

我使用命令行创建了 2 个新分支,当我使用命令 'git branch' 时,我可以在 window 中看到我的所有分支,但是当我使用命令 [=20] 时=] 我收到一条消息说,“没有什么可提交的,工作目录是干净的”,所以我在 github.com 上看不到我的新分支。

任何人都可以解释一下吗?

谢谢! 罗宾

你试过了吗git push origin my_new_branch

我在一台计算机上创建并发布了一个分支时遇到了类似的错误。但在另一个它不会自动添加分支(即使 git 服务器有新分支)。我只是从 shell 中提取数据,而不是使用应用程序的同步功能。一旦我做了 git pull 然后它添加了新的分支并且能够从 gui 中选择。

我认为这是一个错误

以下命令将起作用:

git push origin devbranch

在 运行 上面的命令 git push origin dev 我得到这个错误 "remote: Repository not found."