Spaces:
Sleeping
Branch Migration
At an earlier stage, MMOCR had three branches: main, 1.x, and dev-1.x. Some of these branches have been renamed together with the official MMOCR 1.0.0 release, and here is the changelog.
mainbranch housed the code for MMOCR 0.x (e.g., v0.6.3). Now it has been renamed to0.x.1.xcontained the code for MMOCR 1.x (e.g., 1.0.0rc6). Now it is an alias ofmain, and will be removed in mid 2023.dev-1.xwas the development branch for MMOCR 1.x. Now it remains unchanged.
For more information about the branches, check out branches.
Resolving Conflicts When Upgrading the main branch
For users who wish to upgrade from the old main branch that has the code for MMOCR 0.x, the non-fast-forwarded-able nature of the upgrade may cause conflicts. To resolve these conflicts, follow the steps below:
Commit all the changes you have on
mainif you have any. Backup your currentmainbranch by creating a copy.git checkout main git add --all git commit -m 'backup' git checkout -b main_backupFetch the latest changes from the remote repository.
git remote add openmmlab git@github.com:open-mmlab/mmocr.git git fetch openmmlabReset the
mainbranch to the latestmainbranch on the remote repository by runninggit reset --hard openmmlab/main.git checkout main git reset --hard openmmlab/main
By following these steps, you can successfully upgrade your main branch.