The master branch has now been renamed to main. If you have an existing
checkout, please follow the steps below (thanks to Francis!) to ensure your
local master branch is also correctly renamed. Note that if you do not have
any local changes, you can also simply clone a new copy of the repository
and the default branch will now be main.

   1. Ensure you are in the repository's folder in your command line.
   2. Stash any uncommitted changes:
      - git stash
   3. Check out your local master branch:
      - git checkout master
   4. Rename your local master branch to main:
      - git branch -m master main
   5. Fetch latest commits and branches from remote:
      - git fetch
   6. Remove the tracking branch:
      - git branch --unset-upstream
   7. Create a new tracking branch (assuming the remote is called origin):
      - git branch -u origin/main
   8. Restore your uncommitted changes:
      - git stash pop

--
Michael Mior
mm...@apache.org

Reply via email to