新的分支IS不显示Git分支-A

发布于 2025-02-12 13:19:12 字数 296 浏览 0 评论 0原文

我创建一个带有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

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

森末i 2025-02-19 13:19:12

这是一个完全空的存储库;也就是说,它不包含任何提交。因此,您正处于与通常称为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.

々眼睛长脚气 2025-02-19 13:19:12

如果您在分支机构中没有提议,这可能会发生。

This might happen if you have no commits in the branch.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文