User Tools

Site Tools


auth_gitlab

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
auth_gitlab [2019/12/03 14:57] – [Local Configuration] apanoauth_gitlab [2019/12/03 15:02] – [Global GIT configuration] apano
Line 64: Line 64:
 If you have an already existing configuration, configure it locally for a specific project. If you have no other GIT configurations you can configure it globally. If you have an already existing configuration, configure it locally for a specific project. If you have no other GIT configurations you can configure it globally.
  
-==== Global GIT configuration ==== +==== Global configuration ==== 
-To configure GIT globally using the SSH key Inside the terminal/command line, type:+To configure GIT globally using the SSH key inside the terminal/command line, type:
 <code> <code>
 git config --global user.name "Firstname Lastname" git config --global user.name "Firstname Lastname"
Line 73: Line 73:
  
 This data is stored in your gitconfiguration file:  This data is stored in your gitconfiguration file: 
-Linux/Mac: ~/.gitconfig+ 
 +Linux/macOS: ~/.gitconfig 
 Windows: C:\Users\username\.gitconfig Windows: C:\Users\username\.gitconfig
  
Line 80: Line 82:
 [user] [user]
         name = Lastname Firstname         name = Lastname Firstname
-        email = your_email@unibz.it+        email = your@email
 </code> </code>
  
-Add your server data and insert this data in your ssh configuration file. +Add your server data in your ssh configuration file. Verify the path is correct
  
 Linux/Mac file ~/.ssh/config: Linux/Mac file ~/.ssh/config:
 <code> <code>
 host gitlab.inf.unibz.it host gitlab.inf.unibz.it
 +     HostName gitlab.inf.unibz.it
      user your_username      user your_username
 +     IdentityFile ~/.ssh/id_rsa.pub
 </code> </code>
  
Line 94: Line 98:
 <code> <code>
 Host gitlab.inf.unibz.it Host gitlab.inf.unibz.it
-RSAAuthentication yes +     RSAAuthentication yes 
-IdentityFile ~/.ssh/config/id_rsa.pub+     IdentityFile ~/.ssh/config/id_rsa.pub
 </code> </code>
  
/data/www/wiki.inf.unibz.it/data/pages/auth_gitlab.txt · Last modified: 2020/04/02 11:25 by apano