DEV Community

loading...

Discussion on: How to rename your master branch to something else

Collapse
mrsaeeddev profile image
Saeed Ahmad Author

Thank you so much. I'll try this one-liner. This is more concise.

Collapse
jessehouwing profile image
Jesse Houwing • Edited

Careful though... I did this on one repo where, as it turned out the master wasn't up to date with origin. So, from that moment on, I relied on branching from
origin/master instead of my local master after performing a fetch.

Thread Thread
mrsaeeddev profile image
Saeed Ahmad Author

I haven't tried it yet but thank you for pointing this out.

Some comments have been hidden by the post's author - find out more

Forem Open with the Forem app