-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Change default initial branch to match github #60
base: main
Are you sure you want to change the base?
Conversation
d0a2108
to
f776c84
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for me it still follows the ~/.gitconfig
's defaultBranch
@rohnsha0 Yes, that is my goal: use |
ummm, to my surprise. When I removed the |
@@ -0,0 +1,2 @@ | |||
Use `main` as the default branch for new git repositories, unless it has been |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
main
is more of a fallback than a default now.
Use `main` as the default branch for new git repositories, unless it has been | |
Use the `init.defaultBranch` setting in git `config` if available, else `main`, as the branch name for new git repositories. @davisagli |
I have no idea how to run a local checkout of this branch to verify it works. It's not covered in the README, and I lack familiarity with the tooling. @davisagli can you clue me in? |
Fixes #59
Tested on my machine with and without
init.defaultBranch
set in ~/.gitconfig