Quantcast
Viewing latest article 4
Browse Latest Browse All 11

Answer by Charan Shetty for git: rename local branch failed

First set your email and username config using:

git config --global user.email “you@example.com”git config --global user.name “Your Name”

Then add your files:

git add .

Then make your first commit :

git commit -m "Initial commit"

And now run the command :

git branch -M main

It worked for me this way.


Viewing latest article 4
Browse Latest Browse All 11

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>