i cloned my repository and try executing hub pull-request
$ hub pull-request -b strategy_master
Aborted: the origin remote doesn't point to a GitHub repository.
$ git remote -v
origin [email protected]:xxx-services/yyy-server.git (fetch)
origin [email protected]:xxx-services/yyy.git (push)
i do not have any upstream and github remote set.
Help me here
I'm also getting this issue trying to open a PR on an enterprise github.
$ hub --version
git version 2.11.0 (Apple Git-81)
hub version 2.2.9
@mayank023: This is mentioned in the hub man page
By default, hub will only work with repositories that have remotes which point to github.com. GitHub Enterprise hosts need to be whitelisted to configure hub to treat such remotes same as github.com:
$ git config --global --add hub.host my.git.org
@phodge Thanks for pointing that out! @mayank023, if you're connecting to GitHub Enterprise, the hostname will need to be whitelisted as per documentation.
@mislav I have enterprise github hosted internally - github.xxx.xxx.xxx.com.
I'm trying to automate the process of creating the pull requests using:
$ hub pull-request develop ./
Aborted: the origin remote doesn't point to a GitHub repository.
How do I use the hub-pull-request with my github server?
Please advise.
Thanks,
DKS
@DKKS: git config --global --add hub.host github.xxx.xxx.xxx.com
I am trying to perform a pull request to the repository which resides in BitBucket but I am getting an error
Error: Error creating pull request: Not Found (HTTP 404)
I tried performing git config --global --add hub.host bitbucket.org
but still the error persist.
Please help
@sujodey Hub is only made for GitHub repositories and does not support other platforms such as BitBucket; sorry.
Most helpful comment
@mayank023: This is mentioned in the hub man page