Reputation: 439
I create a branch in my git repository (called 'pmc') and it is becoming the default directory. Now, I would like to move the files over to main, but when I try to change the default directory, only 'pmc' show up. How come main is missing?
appreciate any kind help.
Upvotes: 0
Views: 49
Reputation: 143
This post is helpful
https://www.git-tower.com/learn/git/faq/git-rename-master-to-main/
To rename branch use
git branch -m pmc main
Upvotes: 1