How to transfer branch to customer (SaaS)
How to transfer repo to customer (SH)
Transfer branch from ps-custom to new psus-custom
- Create a copy of ps-custom in folder ps-custom_bis
git clone git@github.com:odoo/ps-custom.git ps-custom_bis
- Go into this folder
cd ps-custom_bis
- Checkout the branch you want to copy
git checkout <branch_to_copy>
- Change the remote url to your new repo
git remote set-url origin git@github.com:odoo-ps/<new_repo>.git
- Push the branch on your new repo
git push
You can also change the name of the branch transferred
- Checkout the branch transferred
git checkout <branch_transferred>
- Change name locally to for example 12.0-module_saas_backup
git branch -m <new_name>
- Set new upstream
git push origin -u <new_name>
- Delete old name remote branch:
git push origin --delete <old_name>
After that you can delete the folder ps-custom_bis from your computer.
You now have previous dev with historic on the new repository.