You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make gcm and similar 'master' oriented commands configurable and/or check for 'main'/'master' branches and select correct branch accordingly. The default should probably be 'main' as this is the new default branch name on a lot of git hosts like GitHub, Bitbucket, Azure DevOps, to mention a few.
Finally i just wanted to say thanks for these aliases. I'm using them every day. :)
The text was updated successfully, but these errors were encountered:
I can see in oh-my-zsh that they make this configurable by checking using a functiongit_main_branch which checks for existence of branches 'main' and 'trunk' in that order and outputs the first one it finds, or if outputs 'master' if none is found.
Note: De to a bug in PowerShell Core 7.1 the current Get-Git-MainBranch implementation wont work. We can fix it by chaging the $? checks with $LASTEXITCODE checks. See PR #25
Note: De to a bug in PowerShell Core 7.1 the current Get-Git-MainBranch implementation wont work. We can fix it by chaging the $? checks with $LASTEXITCODE checks. See PR #25
Make
gcm
and similar 'master' oriented commands configurable and/or check for 'main'/'master' branches and select correct branch accordingly. The default should probably be 'main' as this is the new default branch name on a lot of git hosts like GitHub, Bitbucket, Azure DevOps, to mention a few.Finally i just wanted to say thanks for these aliases. I'm using them every day. :)
The text was updated successfully, but these errors were encountered: