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 revision
Previous revision
Next revisionBoth sides next revision
auth_gitlab [2019/12/03 14:56] – [Configure your local Git Client] apanoauth_gitlab [2019/12/03 15:02] – [Global GIT configuration] apano
Line 59: Line 59:
  
 Before proceeding check if your GIT client is already configured.  Before proceeding check if your GIT client is already configured. 
-Linux/macOS terminal or Windows Git Bash, type the following: <code>git config --global --list</code> <code> git config --list </code>+Linux/macOS terminal or Windows Git Bash, type the following: <code> git config --global --list</code> <code> git config --list </code>
  
 This command lists any existing GIT repositories configurations.  This command lists any existing GIT repositories configurations. 
 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>
  
Line 102: Line 106:
  
 <code txt> <code txt>
-cd repository_folder+cd repository_folder_in_your_computer
 git config user.name "Firstname Lastname" git config user.name "Firstname Lastname"
-git config user.email "your_other@email"+git config user.email "your@email"
 </code> </code>
  
 Should you receive this message  **fatal: not in a git directory**, you have to initialize the folder as a git folder. Issue command : <code> Should you receive this message  **fatal: not in a git directory**, you have to initialize the folder as a git folder. Issue command : <code>
 git init git init
-</code> and run commands again.  +</code> and run git commands again.  
  
 ===== Basic Git ===== ===== Basic Git =====
/data/www/wiki.inf.unibz.it/data/pages/auth_gitlab.txt · Last modified: 2020/04/02 11:25 by apano