Hub Git Wrapper
github.com
Hub Git Wrapper
1–10 of 23 posts
Re: Hub Git Wrapper
#2It sent the PR from my branch on my fork to master on my fork. Obviously I wished to PR against the original thing I forked from.
I just stick to the web interface now.
Re: Hub Git Wrapper
#3I once tried to PR from hub. It sent the PR from my branch on my fork to master on my fork. Obviously I wished to PR against the original thing I forked from. I just stick to the web interface now.
Perhaps not using hub to do so, though.
Re: Hub Git Wrapper
#4 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 browserRe: Hub Git Wrapper
#5I once tried to PR from hub. It sent the PR from my branch on my fork to master on my fork. Obviously I wished to PR against the original thing I forked from. I just stick to the web interface now.
git pull-request \
-m "I added an awesome feature"\
-b baserepo:master\
-h myfork:feature-branchRe: Hub Git Wrapper
#6I once tried to PR from hub. It sent the PR from my branch on my fork to master on my fork. Obviously I wished to PR against the original thing I forked from. I just stick to the web interface now.
You could submit a pull request to hub to fix it! Perhaps not using hub to do so, though.
Re: Hub Git Wrapper
#7Thanks 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
Re: Hub Git Wrapper
#8I once tried to PR from hub. It sent the PR from my branch on my fork to master on my fork. Obviously I wished to PR against the original thing I forked from. I just stick to the web interface now.
What you needed was to use the options -h (head, ie. the feature branch) and -b (base, ie the upstream master) eg. git pull-request \ -m "I added an awesome feature"\ -b baserepo:master\ -h myfork:feature-branch
Re: Hub Git Wrapper
#9Earlier quoted context omitted.
You could submit a pull request to hub to fix it! Perhaps not using hub to do so, though.
hub works just fine to create a PR, some lack of RTFM is at play.
But I always believe them when they say something is difficult or confusing. Research should not be required to make a good CLI do what you want, provided you understand what you want.
Re: Hub Git Wrapper
#10I once tried to PR from hub. It sent the PR from my branch on my fork to master on my fork. Obviously I wished to PR against the original thing I forked from. I just stick to the web interface now.