develooper Front page | perl.perl5.porters | Postings from October 2019

Re: Perl 5 is now on github

Thread Previous | Thread Next
From:
Tomasz Konojacki
Date:
October 23, 2019 01:05
Subject:
Re: Perl 5 is now on github
Message ID:
20191023030450.CD0A.5C4F47F8@xenu.pl
On Tue, 22 Oct 2019 19:46:39 -0500
"Craig A. Berry" <craig.a.berry@gmail.com> wrote:

> Why "git@" instead of "<username>@"?  For example, previously I had
> 
> origin ssh://craigb@perl5.git.perl.org/perl.git (fetch)
> origin ssh://craigb@perl5.git.perl.org/perl.git (push)
> 
> because craigb was my username on the booking.com servers.  Are you
> saying GitHub figures out who you are via your SSH key and everyone's
> username is "git"?
> 
> If I do this:
> 
> $ git remote set-url origin ssh://git@github.com:Perl/perl5.git
> 
> git pull tells me the repository does not exist or I do not have
> access.  If I leave off the "ssh://" it does allow me to pull.
> Haven't tried to push yet, so I don't actually know if I have the
> correct set-up.

The ssh:// URL doesn't work because of the ':'. For SSH connections, git
accepts two types of addresses:

scp-style: git@github.com:Perl/perl5.git
URL: ssh://git@github.com/Perl/perl5.git

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About