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
developers:git:access_config [2019/11/05 01:00] – [Configuring Git for Launchpad] Matteo Giantomassidevelopers:git:access_config [2019/11/05 01:05] (current) – [Access configuration] Matteo Giantomassi
Line 4: Line 4:
  
 Here, we will suppose that you have already configured your Gitlab account properly and added the relevant SSH public keys to your profile, and that you have opened a terminal. Here, we will suppose that you have already configured your Gitlab account properly and added the relevant SSH public keys to your profile, and that you have opened a terminal.
 +Note that with Gitlab account we mean an account on our **internal server** at gitlab.abinit.org and not an account on the gitlab.com portal!
 ===== Configuring SSH ===== ===== Configuring SSH =====
  
Line 63: 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 80: 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