Easily rename Git master branch to main | Scott Hanselman

Turns out it's pretty simple to rename any branch in Git. Scott has a full step-by-step guide, but there are a few pointers:

git branch -m master main
git push -u origin main

Then just go into your GitHub settings for the repository and change the root value under branches. You're done πŸ‘

Explore Other Notes

β¬… Newer

Invisible insulation

It’s almost impossible to make a list of all the things I didn’t have to worry about yesterday. We need to work overtime to make that true for more […]

Older ➑

Online town

Like a lot of people, at the start of lockdown I ended up trying out a seemingly endless stream of video-chat services. For the most part, Zoom seems to have become the de facto standard, […]
  • Turns out it's pretty simple to rename <em>any</em> branch in Git. Scott has a full step-by-step guide, but there are a few [&#8230;]
  • Murray Adcock.
Journal permalink

Made By Me, But Made Possible By:

CMS:

Build: Gatsby

Deployment: GitHub

Hosting: Netlify

Connect With Me:

Twitter Twitter

Instagram Instragram

500px 500px

GitHub GitHub

Keep Up To Date:

All Posts RSS feed.

Articles RSS feed.

Journal RSS feed.

Notes RSS feed.