Note: There will be no commit on main
branch.
There are 2 remotes:
Each version should have a seprate branch on both remotes like version-15
, version-13
e.t.c
Developer will commit the change in the relative branch example version-15
After commiting developer should keet the relative branch in sync with its upstream
branch by:
git fetch upstream
git merge upstream/<relative branch>
At times there might be some conflicts developer hast to make sure the conflicts are resolved properly.
Switch to latest branch example version-15
& make sure its synced with its upstream branch.
git checkout version-15
git fetch upstream
git merge upstream/version-15
create new branch from latest branch & push.
git checkout version-15
git checkout -b version-16
git push origin version-16
sync with relative upstream branch by
git fetch upstream version-16
git merge upstream/version-16
resolve conflicts if any & push.
git push origin version-16