On Thu, 15 Nov 2012 16:10:22 +0530
Ankita Poovaiah <ankitapoova...@gmail.com> wrote:

> >> I have created ssh keys. While trying to push git repository to
> >> github it is showing this error "git push -u origin master fatal:
> >> unable to connect to github.com: github.com: Servname not
> >> supported for ai_socktype". What do I need to do?
> >
> > Most probably you messed up the URL of your remote repository
> > "origin" when adding it: looks like it has extraneous ":" after the
> > host name (github.com). Could you please show us the output of `git
> > remote show origin`? (If you are using some front-end then look at
> > repository settings there.)
> >
> > I think you wil need to change this URL -- just look at your github
> > project's page (while being logged in) as it shows you what URLs
> > you should use for various types of access; pick that for SSH and
> > copy/paste it verbatim to your settings. If you're using plain Git,
> > it's `git remote` command supports the --set-url command-line
> > option.
> >
> For 'git remote show origin' it shows the same error.

Okay, what does simple `git remote -v` show?  This command does not try
to access the remote repo for sure, so should work.

Please don't top-post -- this breaks the discussion flow.


Reply via email to