Repository Migration
Instructions
- In your local repository, make sure you're checking out to another branch from
main
. - Delete your local
main
branch:
git branch -D main
- Add new remote:
- Rename old remote to old-origin
git remote rename origin old-origin
- Add new remote
git remote add origin https://github.com/pariskwsto/tils.git
Opened PRs
If you no longer have your open PR branches locally (unlikely) then you can still fetch them from the old origin with this command
git fetch old-origin <BRANCH_NAME>:<BRANCH_NAME>
Then to open new PRs, just push as normal
git push origin <BRANCH_NAME>