Skip to content

How to know which is the default branch #1364

Answered by richtier
dsharma522 asked this question in Q&A
Discussion options

You must be logged in to vote

this seems to work repo.remotes.origin.refs.HEAD.ref.remote_head

bit verbose tho!

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@dsharma522
Comment options

@Byron
Comment options

@dsharma522
Comment options

@Byron
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@agowa
Comment options

Answer selected by Byron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants