This is as much a question as an issue. All repositories created in the last two years on GitHub (and many more have changed to) use 'main' as the default branch, however Update-AllBranches defaults to 'master'. Is there a reasonable way to make the default something like the result of (git branch --remote --list '*/HEAD') -split '/' | select -last 1. This would, theoretically, allow for master branches named stage or jabberwocky or any manner of strangeness that the repository owner chose
System Details
Issue Description
This is as much a question as an issue. All repositories created in the last two years on GitHub (and many more have changed to) use 'main' as the default branch, however
Update-AllBranches
defaults to 'master'. Is there a reasonable way to make the default something like the result of(git branch --remote --list '*/HEAD') -split '/' | select -last 1
. This would, theoretically, allow for master branches named stage or jabberwocky or any manner of strangeness that the repository owner chose