author avatar

syedsibtain

Wed Aug 07 2024

Quick Tip: How can we open a PR from one repository to another repository

  1. Create the branch in the current repo
git checkout -b new-branch
  1. Add the destination repository as a remote.
git remote add destination <https://github.com/username/destination-repo.git>
  1. Push the new branch to the destination repository
git push destination new-branch
  1. 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