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 revision
Previous revision
Last revisionBoth sides next revision
developers:git:access_config [2019/11/05 00:59] – [Additional info: Setup of the SSH environment] Matteo Giantomassidevelopers:git:access_config [2019/11/05 01:01] – [Configuring Git for Launchpad] Matteo Giantomassi
Line 44: Line 44:
 <code>git remote set-url origin abinit-forge:DEVELOPER/abinit</code> <code>git remote set-url origin abinit-forge:DEVELOPER/abinit</code>
  
-===== 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> 
 ===== Additional info: Setup of the SSH environment ===== ===== Additional info: Setup of the SSH environment =====
  
Line 74: Line 63:
    KeepAlive yes    KeepAlive yes
    IdentityFile ~/.ssh/id_rsa_gitlab    IdentityFile ~/.ssh/id_rsa_gitlab
 +   
 +   
  
 and then, copy the public key //id_rsa_gitlab.pub// on gitlab. and then, copy the public key //id_rsa_gitlab.pub// on gitlab.
Line 91: Line 82:
   ssh add ~/.ssh/id_rsa_gitlab # add the corresponding ssh key for gitlab   ssh add ~/.ssh/id_rsa_gitlab # add the corresponding ssh key for 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>
  
developers/git/access_config.txt · Last modified: 2019/11/05 01:05 by Matteo Giantomassi