https://www.jvt.me/posts/2021/03/31/git-origin-head/ may be of interest as a fairly well supported way of getting upstream default branch - I'm interested in this too though so I'll have a play with it tomorrow too

This post was filed under replies.

Interactions with this post

Interactions with this post

Below you can find the interactions that this page has had using WebMention.

Have you written a response to this post? Let me know the URL:

Do you not have a website set up with WebMention capabilities? You can use Comment Parade.