hub: `hub clone org/repo` private repo, fails unless explicit https
I’m a member of organization org which has private repository repo:
For hub clone org/repo:
github.com username: lukedmor
github.com password for lukedmor (never stored):
Cloning into 'repo'...
fatal: remote error:
repository not found.
However, hub clone https://github.com/org/repo does work correctly.
About this issue
- Original URL
- State: open
- Created 9 years ago
- Reactions: 4
- Comments: 17 (9 by maintainers)
Hmm, are you running the latest hub version? v2.2 would be ideal.
In any case, it seems you’ve set up your credentials to successfully clone repos over HTTPS, so with this command you can tell hub to always use HTTPS instead of git or ssh protocols: