FAQ
6. Clearing Up the Confusion
Let's tackle some common questions about "master" and "main":
Q: Does switching to "main" break anything?
A: No, not if you do it correctly! As long as you follow the proper renaming procedures and communicate the change to your team, switching to "main" shouldn't break anything. It's essentially just a name change.
Q: What if a project still uses "master"? Is it wrong?
A: Not at all! There's nothing inherently wrong with using "master." It's perfectly functional. The move to "main" is a suggestion and the best practice for the future, not a requirement. Many legacy projects will continue to use "master" for the foreseeable future.
Q: Can I use a different branch name altogether?
A: Absolutely! You're not limited to "master" or "main." You can use any valid branch name you want. However, it's generally a good idea to stick to established conventions for the primary branch to avoid confusion.
Q: What if I accidentally commit to "master" after renaming to "main"?
A: No worries, you can merge those commits to your "main" branch. The important part is that the commits find their way to the correct branch. After merging you can delete the orphaned commits on "master".