User Tools

Site Tools


developers:git:access_config

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
developers:git:access_config [2019/11/05 01:00] – [Configuring Git for Launchpad] Matteo Giantomassidevelopers:git:access_config [2019/11/05 01:01] – [Additional info: Setup of the SSH environment] Matteo Giantomassi
Line 63: Line 63:
    KeepAlive yes    KeepAlive yes
    IdentityFile ~/.ssh/id_rsa_gitlab    IdentityFile ~/.ssh/id_rsa_gitlab
 +   
 +   
 +===== Configuring Git for Launchpad =====
 +
 +If you are using and/or developing Abinit-related packages located on Launchpad, we recommend you to add the following to your Git configuration:
 +<code sh>
 +git config --global "url.git+ssh://USER@git.launchpad.net/.insteadOf" "lp:"
 +</code>
 +where you replace //USER// by your Launchpad user name.
 +
 +Once done, you can interact with Launchpad through the "lp:" prefix, e.g.:
 +<code sh>git clone lp:abinit-fallbacks</code>
 +or:
 +<code sh>git clone lp:~abinit-fallbacks-developers/libpsml</code>
  
 and then, copy the public key //id_rsa_gitlab.pub// on gitlab. and then, copy the public key //id_rsa_gitlab.pub// on gitlab.
developers/git/access_config.txt · Last modified: 2019/11/05 01:05 by Matteo Giantomassi