-
Notifications
You must be signed in to change notification settings - Fork 432
How to migrate to main branch in local repo
Deyu Huang edited this page Mar 18, 2022
·
1 revision
tensorflow-onnx changed the default branch to main branch recently. In case you have a forked tensorflow-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 tensorflow-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 tensorflow-onnx repo will have main branch as a basis for all your pull requests.