DEV Community

loading...

Discussion on: Renaming your master branch to main in GithubπŸ‘©β€πŸ’»

Collapse
thinkverse profile image
Kim Hallberg

Git v2.28 introduced the init.defaultBranch config so now you can also set it locally as well. πŸ‘Β πŸ™‚

$ git config --global init.defaultBranch main
Enter fullscreen mode Exit fullscreen mode

Github wrote a blog post about that you can read - "Introducing init.defaultBranch". πŸ˜€

Collapse
tracycss profile image
Jane Tracy πŸ‘©πŸ½β€πŸ’» Author

Thank you, Kim, for adding that.
I didn't know about it. πŸ”₯

Collapse
tcelestino profile image
Tiago Celestino

It's nice!!!

Some comments have been hidden by the post's author - find out more

Forem Open with the Forem app