📝 GUIDE: How To Push To Someone Else's PR #49
taljacob2
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
GUIDE: How To Push To Someone Else's PR
PR Owner (That Already Pushed Some Commits):
Other Team Member That Wants To Push To That PR:
Add a remote of your team member that made the PR, with SSH, with the token made:
For example:
Checkout to the branch that is linked to the PR you want to contribute to.
For example, if the PR looks like this:
Then, you want to:
Work on that branch, and add your commits to it.
It is a convention to add both of you as the commit authors.
Do it by adding a list of
Co-authored-by: user.name <user.email>to the bottom of the commit message.For example, let's say you are contributing to
taljacob2:feat/adding-chat-app. So you need to add to the bottom of the commit message the line:(Before pushing, make sure the PR owner knows you want to push to his PR!).
Push the commit to the fork of the PR owner, to add it to the PR.
For example:
You're done! The PR has been successfully updated with your commits.
Beta Was this translation helpful? Give feedback.
All reactions