launchpad-users team mailing list archive
-
launchpad-users team
-
Mailing list archive
-
Message #06965
Re: Git Usage in Launchpad
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.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
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 [cjwatson@xxxxxxxxxxxxx]
Follow ups
References