'Apply the same changes to the updated git repository as the previous version changes in mmdetection

Initially, I used mmdetection-v2.20.0.

unzip mmdetection-v2.20.0.zip
git add mmdetection-v2.20.0
git commit -m 'add mmdetection-v2.20.0'
git push origin main

I changed and added some configs and tools in main branch.

After that, a new version of mmdetection was released, so I created a PR branch as follows.

git checkout -b dev-v2.21.0
unzip mmdetection-v2.21.0.zip
git add mmdetection-v2.21.0
git commit -m 'add mmdetection-v2.21.0'
git push origin dev-v2.21.0

In this situation, is there a way to get the changes of configs and tools in the main branch into dev-v2.21.0 efficiently or automatically?

Note: Since configs and tools are library independent, I assume most fixes are applicable to the new version. I may be able to use git cherry-pick, so I am considering it.

Currently, I publish a PR for each version up, change it manually, and then merge it.

git


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source