3 ms·
Thanks to hub the friction to contributing is much lower for me. That's how I contribute back to projects on github: hub clone user/repo cd repo gi
by zimbatm 11y ago
Thanks to hub the friction to contributing is much lower for me. That's how I contribute back to projects on github:
hub clone user/repo
cd repo
git checkout -b my-contrib
# ... fix fix fix ...
hub fork
git push -u zimbatm my-contrib
hub browse # Opens browser on my fork
# Create PR with comment in browser
- jballanc 11y agoJust a note, you can simplify your workflow even further by using `hub pull-request` . If your PR consists of a single commit, it'll even pre-populate the PR description for you (if not, it helpfully lists the commits included in the PR in the comments of the PR/commit message).
- bderusha 11y agoIf you want to review the PR before submitting it you can also do `hub compare my-contrib` and it will open up the comparison in your browser. One more click to turn it into a PR.