heads up! the default <https://github.com/pantsbui...
# development
w
heads up! the default https://github.com/pantsbuild/pants branch has been renamed to `main`: all PRs have already been updated, but if you have a source checkout of Pants, you’ll need to rename the branch manually.
👌 1
🚀 1
Screen Shot 2021-03-19 at 12.23.19.png
thanks to @hundreds-father-404 for driving!
❤️ 1
(originally posted in #general, but not relevant to the vast majority of users)
h
FYI to rename your local
master
to `main`:
Copy code
git branch -m master main
Then to rename its upstream reference:
Copy code
git fetch
git branch --unset-upstream
git branch -u origin/main
👍 1
You may also want to do
Copy code
git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/main
In case of errors like
warning: ignoring broken ref refs/remotes/origin/HEAD
w
@happy-kitchen-89482: there are instructions at the top of this thread that might help too