新的分支IS不显示Git分支-A
我创建一个带有git Checkout -B“ branch_name”的新分支机构 我希望当我运行git分支-A:: 但是我看不到结果,有什么想法会导致这件事?
git版本2.36.1.Windows.1
I create a new branch with git checkout -b "branch_name"
I would expect to see this branch when I run git branch -a:
But I see no results, any ideas what could be causing this?
git version 2.36.1.windows.1
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是一个完全空的存储库;也就是说,它不包含任何提交。因此,您正处于与通常称为unborn分支的合作的好奇位置。允许您创建分支名称,以决定当您 do do 创建一个提交时,您将打开什么分支。但是在那之前,该分支是未出生的,并且在您的
git分支
输出中均未列出。This is a completely empty repository; that is, it contains no commits. Therefore you are in the curious position of working with what is usually called an unborn branch. You are allowed to create the branch name so as to dictate what branch you will be on when you do create a commit. But until then, the branch is unborn and is not listed in your
git branch
output.如果您在分支机构中没有提议,这可能会发生。
This might happen if you have no commits in the branch.