The following happens to me from time to time:
- clone something from github
- discover something I want to fix.
- want to offer it back.
- Go make a fork
- clone my fork
- manually merge my changes to the fork
- open a pull request
Somehow, it seems to me that there should be a simpler way to get from ‘I’ve got local changes in a local branch’ to ‘I’ve got changes in a fork I can submit a pull for.’
Is there?
Github has the hub gem for maniplating their API.
Secondarily ( and I think what you’re looking for) you can add a second remote to your original repo like
and then
to push branchname up to your fork from the original repo. The
-uflag sets that branches upstream to be your fork.