← Back to team overview

launchpad-users team mailing list archive

Re: Git Usage in Launchpad

 

Hello Pierre,

Am Montag, den 09.10.2017, 09:14 +0800 schrieb Pierre Equoy:
> On Mon, Oct 9, 2017 at 7:15 AM, Sascha Manns
> <Sascha.Manns@xxxxxxxxxxx> 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-manns-h@xxxxxxxxxxxxxxxxx/"]
        insteadof = lp:
[url "git+ssh://sascha-manns-h@xxxxxxxxxxxxxxxxx/"]
        insteadof = git+ssh://git.launchpad.net/

I've tried:
1.) git init
2.) git remote add origin lp:youtube-dlhelper/+git/packaging
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
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository
exists.

This is clear, because it should be a new repository.

To clarify: I already have one main repository: https://code.launchpad.
net/~youtube-dlhelper/youtube-dlhelper/+git/youtube-dlhelper

The new one should be a additional one.

Greetings
Sascha




Follow ups

References