DEV Community

Pierre-Henry Soria ✨
Pierre-Henry Soria ✨

Posted on

How to rename git master branch to main

In this video, I will show you how you can rename easily a git branch name from master to main (or trunk) locally and reflect the changes remotely go your GitHub repository through git CLI.

Top comments (0)