defunkt/hub — Issue #135: Wrong remote url
Author: janko-m
Created: 2012-01-29 12:47:35+00:00
State: open

When I initialize a git repository, and type

$ git remote add origin

it creates

origin	git://github.com/name/repository.git (fetch)
origin	git://github.com/name/repository.git (push)

But it's supposed to create

origin	git@github.com:name/repository.git (fetch)
origin	git@github.com:name/repository.git (push)

Because now git raises a remote error when trying to push:

fatal: remote error:
You can't push to git://github.com/name/repository.git
Use git@github.com:name/repository.git