[ARCHIVED] How to migrate to main branch in local repo
Justin Chu edited this page Oct 24, 2023
·
1 revision
ONNX just moved the default branch to main branch recently. In case you have a forked ONNX repo before, you will need following steps to make your forked repo also use the main branch as default branch:
# go to the directory of onnx/
git fetch upstream # fetch all branches from upstream
git checkout main # checkout local copy of upstream/main
git branch --unset-upstream # stop tracking upstream/main
git push --set-upstream origin main # push to and track origin/main instead
Then your forked ONNX repo will have main branch as a basis for all your pull requests.