In this video I will show you how to rename your default master branch to something else. Additionally you will learn what not to forget when you did the actual rename.
In this example the new name is going to be main, but it could be any another name as well. I will show you how to rename your branch through terminal commands and not just GitHub. That way you know how to do it for all git providers.
⏱ Timestamps
0:00 Intro
0:38 Hanselman Blogpost
1:10 Sample Repository
1:25 Rename Master to Main in Terminal
2:23 Change Links on Your Repository to new branch
2:57 Retarget Open Pull Requests
3:35 Update Your (Draft) Releases on GitHub
4:08 Default Branch and Branch Policies
5:30 Remember to Update Your CI/CD pipelines and others
5:50 Update Local Cloned Repos
6:50 Set Main as New Default For All
8:00 GitHubs' Plans for Branch Renaming (See Links)
8:38 Set Main as Default on Your GitHub Account
9:43 Delete the Master Branch
11:11 Outro
🛑 Don't forget to subscribe to my channel for more cool content: https://www.youtube.com/GeraldVerslui...
🔗 Links
Scott Hanselman blog: https://www.hanselman.com/blog/Easily...
GitHub rename plans: https://github.com/github/renaming
Video edited with Camtasia (ref): https://techsmith.z6rjha.net/AJoeD
#git #branch #rename