On Mon, Oct 09, 2017 at 02:47:00PM +0200, Sascha Manns wrote:
> Am Montag, den 09.10.2017, 09:14 +0800 schrieb Pierre Equoy:
> > On Mon, Oct 9, 2017 at 7:15 AM, Sascha Manns
> > <sascha.ma...@mailbox.org> wrote:
> > > git push origin master
> > > ssh: Could not resolve hostname lp: Name or service not known
> > 
> > This is because by default, git doesn't know what "lp:" stands for.
> I've added this .gitconfig:
> [url "git+ssh://sascha-mann...@git.launchpad.net/"]
>         insteadof = lp:
> [url "git+ssh://sascha-mann...@git.launchpad.net/"]
>         insteadof = git+ssh://git.launchpad.net/
> 
> I've tried:
> 1.) git init
> 2.) git remote add origin lp:youtube-dlhelper/+git/packaging

This is not a valid URL form: it should probably be
"lp:~youtube-dlhelper/youtube-dlhelper/+git/packaging".

The valid forms are listed and explained here:

  https://help.launchpad.net/Code/Git#Repository_URLs

> 3.) git add test
> 4.) git commit -m "Test"
> 5.) git push --set-upstream origin master
> 
> The result:
> LANG=C git push --set-upstream origin master
> ssh: Could not resolve hostname lp: Name or service not known

Are you sure you added the lines above to ~/.gitconfig (i.e. in your
home directory) rather than e.g. trying to create .gitconfig in the
repository?

-- 
Colin Watson                                    [cjwat...@canonical.com]

_______________________________________________
Mailing list: https://launchpad.net/~launchpad-users
Post to     : launchpad-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~launchpad-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to