Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additions to git tips & tricks - recover from a botched PR job #574

Open
TraceyC77 opened this issue Oct 20, 2024 · 0 comments
Open

Additions to git tips & tricks - recover from a botched PR job #574

TraceyC77 opened this issue Oct 20, 2024 · 0 comments

Comments

@TraceyC77
Copy link
Contributor

git fetch
gh pr checkout $PR_ID
git rebase origin/master
# Deal with conflicts
git push --force

OR

git checkout master && git pull
git cherry-pick $COMMIT_ID # get this from the PR
# Fix conflicts
git push
# Go back to PR and manually close it using the commit on master

OR (when the branch lives outside of the getsolus org)

git checkout master && git pull
gh pr checkout $PR_ID
git log # get the commit ID
git checkout master
git cherry-pick $COMMIT_ID
# Deal with conflicts
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant