kowainik / hit-on

:octocat: Kowainik Git Workflow Helper Tool
https://kowainik.github.io/projects/hit-on
Mozilla Public License 2.0
77 stars 13 forks source link

Switch the default branch to 'main' #201

Closed chshersh closed 4 years ago

chshersh commented 4 years ago

And probably introduce an environment variable e.g. HIT_DEFAULT_BRANCH to control this option?

vrom911 commented 4 years ago

I think it is better to get from the repository information to always have up-to-date instead of env vars 🙂

basename $(git rev-parse --abbrev-ref origin/HEAD)

^ This one seems to give us exactly that!