Skip to content

"git branch" does not show orphan branch names. Why? #396

Answered by akinomyoga
Ricalleite asked this question in Q&A
Discussion options

You must be logged in to vote

An answer to this question (from #396 (reply in thread)):

This is the default behavior of Git. The branch in Git is implemented as a tracking reference to a commit. When there are no commits for the branch, it means that the branch has not yet "materialized". The git branch subcommand doesn't seem to recognize the "branch" that hasn't yet materialized. You can also find a description of the behavior in the following answer to a Stack Overflow question.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@Ricalleite
Comment options

@akinomyoga
Comment options

@Ricalleite
Comment options

@akinomyoga
Comment options

@akinomyoga
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by akinomyoga
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants