- Published
- Author
- Syed SibtainSystem Analyst
Quick Tip: How can we open a PR from one repository to another repository
1. Create the branch in the current repo
2. Add the destination repository as a remote.
3. Push the new branch to the destination repository
4. To check all the remote repositories added, we can do:
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
1. Create the branch in the current repo
Code
git checkout -b new-branch2. Add the destination repository as a remote.
Code
git remote add destination https://github.com/username/destination-repo.git3. Push the new branch to the destination repository
Code
git push destination new-branch4. To check all the remote repositories added, we can do:
Code
git remote -vThen, 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