This repository has been archived by the owner on May 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 58
Rebase Guide
Yong Wu edited this page Apr 12, 2022
·
3 revisions
We need to periodically rebase relax/relax
against tvm/main
to sync with upstream and get new features. This page gives instructions on how to do the rebase. Note that before pushing the rebase, please communicate with the community in the Relax discord channel to get consensus.
git checkout relax
git checkout -b rebase-stage1
git push --set-upstream origin rebase-stage1
git checkout -b relax-rebase1
# You can skip this command if you have done it once before
git remote add upstream [email protected]:apache/tvm.git
git fetch upstream
git rebase upstream/main
# Then resolve the conflicts...
After Step1, please make sure:
- Relax can be built successfully;
- All tests can pass;
- No lint errors: use command
sudo docker/bash.sh tlcpack/ci-lint:v0.68 ./tests/scripts/task_lint.sh
.
git checkout relax
git reset --hard relax-rebase1
git push -f
For developers who want to rebase their local changes or want to update their PR, run git rebase --onto origin/relax origin/rebase-stage1
.
What it does is that:
- It takes commits from begin=origin/rebase-stage1 end=your-local-head
- Rebase them onto origin/relax