The default_branchalias returns nothing (it fails silently due to -s) when applied to a private repo.
The problem is that the github API doesn't authenticate using SSH, but via a token - So we need a token!!! Here's a solution (???)
Go to https://github.com/settings/tokens and generate a new token using the settings:
2: Capture the token ID right (SHA1) after the creation (is' only showed ONCE)
3 Store it in your git config in the section githubin a key named APIv3 e.g.:
The
default_branch
alias returns nothing (it fails silently due to-s
) when applied to a private repo.The problem is that the github API doesn't authenticate using SSH, but via a token - So we need a token!!! Here's a solution (???)
github
in a key namedAPIv3
e.g.:default_branch
alias Line#42
to read:Essentially add the switch