PChao
PChao

Reputation: 439

How to change my git default directory to main

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? enter image description here

appreciate any kind help.

Upvotes: 0

Views: 49

Answers (1)

CodingRaz
CodingRaz

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

Related Questions