syedsibtain
Wed Aug 07 2024
Quick Tip: How can we open a PR from one repository to another repository
- Create the branch in the current repo
git checkout -b new-branch
- Add the destination repository as a remote.
git remote add destination <https://github.com/username/destination-repo.git>
- Push the new branch to the destination repository
git push destination new-branch
- To check all the remote repositories added, we can do:
git remote -v
Then, we create a PR in the destination repository from the new branch. This process effectively copies the changes from the original PR into a new PR in a different repository.
#github #git