Change GitHub default branch from master to main
Step 1 Create main branch locally, taking the history from master git branch -m master main Step 2 Push the new local main branch to the remote repo (GitHub) git push -u origin main Step 3 Switch the current HEAD to the main branch git symbolic-re...
Aug 26, 20221 min read118
