DEV Community

Cover image for πŸ”₯ Changing Your Git Repository From Master To Main πŸ”₯
Aosu Stephen Terver
Aosu Stephen Terver

Posted on β€’ Edited on

2 1

πŸ”₯ Changing Your Git Repository From Master To Main πŸ”₯

It has become imperative for us to remove the master/slave terms from our codes.

I will be showing you how I did that for my local git repository.

Simply get into your project directory from the terminal and run the following command:

git branch -m master main
Enter fullscreen mode Exit fullscreen mode

For this command to work as expected, make sure you have made some commits on the branch.

And viola! πŸ’₯ that is it. You can now push to your remote.

Top comments (1)

Collapse
 
dapone profile image
Afisunlu Dapo β€’

Great!

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay