User Tools

Site Tools


auth:howto:sshkeygitlab

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
Next revisionBoth sides next revision
auth:howto:sshkeygitlab [2016/06/15 10:47] – [SINGLE GIT ACCOUNT] apanoauth:howto:sshkeygitlab [2016/07/07 11:27] – [MULTIPLE GIT ACCOUNTS] apano
Line 27: Line 27:
 ===== LOCAL GITLAB PROFILE ===== ===== LOCAL GITLAB PROFILE =====
  
-==== SINGLE GIT ACCOUNT ====+==== GLOBAL GIT ACCOUNT ====
 You have to configure your locally installed gitlab client to connect using the ssh key.  You have to configure your locally installed gitlab client to connect using the ssh key. 
  
-LINUX/MACOSX +Inside a terminal (LinuxMacOS)/GIT bash (Windows), type the following: 
- +
-Inside a terminal, type the following:  +
- +
-<code> +
-git config --global user.name "Firstname Lastname" +
-git config --global user.email "your_email@unibz.it" +
-git config --list +
-</code> +
- +
-WINDOWS +
- +
-Inside your GIT bash command line, type the following: +
  
 <code> <code>
Line 61: Line 49:
  
 Try to checkout repo. Should you experience trouble check the contents of file: .ssh/config. You can manually insert:  Try to checkout repo. Should you experience trouble check the contents of file: .ssh/config. You can manually insert: 
 +<code>
 host gitlabhostname.unibz.it host gitlabhostname.unibz.it
 +</code>
  
  
                  
-==== MULTIPLE GIT ACCOUNTS ====+==== LOCAL GIT ACCOUNT ====
 You can also have different gitlab accounts (with different RSA keys) for different hosts. You can keep a global user/email configuration and a local configuration for a specific repository. In the root of a repository, run: You can also have different gitlab accounts (with different RSA keys) for different hosts. You can keep a global user/email configuration and a local configuration for a specific repository. In the root of a repository, run:
  
/data/www/wiki.inf.unibz.it/data/pages/auth/howto/sshkeygitlab.txt · Last modified: 2019/12/03 14:18 by apano