Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 592 Bytes

submit-pr.adoc

File metadata and controls

23 lines (17 loc) · 592 Bytes

Create branch to submit a PR to upstream

Pre-requesite: Tracking upstream

Create a branch and cherry-pick interresting commits to push to upstream through a pull request (PR) with following commands:

git checkout -b fix-something
git reset --hard upstream/main
git cherry-pick --no-commit <interresting-commit-hash>
git push --set-upstream origin "$(git-branch-current 2> /dev/null)"

Then go to Github and create a PR to upstream repository.

Using prezto aliases:

gbc fix-something
gwR upstream/main
gcP <interresting-commit-hash>
gpc