Content-Length: 385220 | pFad | http://github.com/gitpython-developers/GitPython/discussions/1364

EF How to know which is the default branch · gitpython-developers GitPython · Discussion #1364 · GitHub
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.origen.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








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/gitpython-developers/GitPython/discussions/1364

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy