prof-rossetti / intro-to-python

An Introduction to Programming in Python
Other
97 stars 244 forks source link

Updating Default Branch Name for Local Git Repos #78

Closed s2t2 closed 2 years ago

s2t2 commented 3 years ago

If you generated your local repo with git init . and it has a "master" branch by default (for example if you're using an old version of local Git), follow these steps to re-configure the local repo:

git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a
s2t2 commented 2 years ago

related to #59