Install Hub

brew install hub

Create Repository

hub create ruby-bits

Protocol issue and workaround

Getting the error:

brian:rails brian$ hub create ruby-bits username: bcjordan password for bcjordan (never stored): 
Updating origin
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
error: Could not fetch origin

The fix was to set the hub protocol to always use https instead of git:

git config --global hub.protocol https

About the Author

Brian is a game and web developer in San Francisco working at, a non-profit focused on growing access to Computer Science education. Brian also curates Coding for Interviews, a weekly programming interview practice newsletter. Formerly @ PopCap, intern @ TripAdvisor, One Laptop per Child, Tufts CS. Follow Brian on Twitter @bcjordan.

blog comments powered by Disqus