Transfer branch from ps custom to psus custom - odoo-ps/psus-process Wiki

  1. Create a copy of ps-custom in folder ps-custom_bis
git clone [email protected]:odoo/ps-custom.git ps-custom_bis
  1. Go into this folder
cd ps-custom_bis
  1. Checkout the branch you want to copy
git checkout <branch_to_copy>
  1. Change the remote url to your new repo
git remote set-url origin [email protected]:odoo-ps/psus-custom.git
  1. Push the branch on your new repo
git push

You can also change the name of the branch transferred

  1. Checkout the branch transferred
git checkout <branch_transferred>
  1. Change name locally to for example 12.0-module_saas_backup
git branch -m <new_name>
  1. Set new upstream
git push origin -u <new_name>
  1. 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 history on the new repository.

⚠️ **GitHub.com Fallback** ⚠️