Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update-AllBranches defaults to master #919

Open
Bladehawke opened this issue Aug 14, 2022 · 0 comments
Open

Update-AllBranches defaults to master #919

Bladehawke opened this issue Aug 14, 2022 · 0 comments

Comments

@Bladehawke
Copy link

System Details

  • posh-git version/path: 1.1.0 ~\Documents\PowerShell\Modules\posh-git\1.1.0
  • PowerShell version: 7.2.6
  • git version 2.37.1.windows.1
  • OS: Microsoft Windows NT 10.0.22000.0

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant