Easily rename your Git default branch from master to main - Scott Hanselman
https://www.hanselman.com/blog/EasilyRenameYourGitDefaultBranchFromMasterToMain.asp
Seems like this could all be buttoned up in the CLI? I wonder if you could add freedom as a command to issue the git commands, making it very simple?
I'm not sure it's the right place for it, but it could be some good publicity.
git branch -m master main
git push -u origin main
Great suggestion @sympmarc 馃憦馃徎
I personally would prefer changing to trunk, as after we dropped the dev branch we implemented Trunk Based Development so the name fits that strategy.
Based on the above, the command should also accept an optional name parameter, if not supplied main is used as the default.
While I understand the reasoning behind the command, I'd be against implementing it, because its functionality is not related to Microsoft 365.
Fair enough, and you鈥檙e right. I鈥檓 not sure it fits into any of the PnP efforts, really, but it just seemed like a potentially good thing to do.
I absolutely agree that it's a good thing to offer people. Not sure if we have a place for a sample PowerShell/sh script that does this anywhere?
I'll close this issue, but let's continue the discussion with the rest of the community.