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 15:12] – [Global configuration] apanoauth_gitlab [2019/12/03 15:24] – [Initial setup] apano
Line 15: Line 15:
  
 You can have different hosts for different Git repositories which you access via specific username/e-mail. You have to configure your local Git with these settings.  You can have different hosts for different Git repositories which you access via specific username/e-mail. You have to configure your local Git with these settings. 
 +
 +You can either clone/push/pull via HTTPS or SSH. If you chose to use HTTPS, you’ll have to enter your credentials every time, if you choose to use SSH you only insert the password of your SSH key. [[https://docs.gitlab.com/ee/gitlab-basics/start-using-git.html#clone-a-repository|Official documentation]]
 +
  
 The steps for pushing and pulling via SSH Key The steps for pushing and pulling via SSH Key
  
-  * Step 1: [[auth:gitlab#identify_or_create_the_ssh_key|Identify or create SSH Key]] - [[https://docs.gitlab.com/ee/ssh/README.html|Official Documentation]]  +  * Step 1: [[auth_gitlab#identify_or_create_the_ssh_key|Identify or create SSH Key]] - [[https://docs.gitlab.com/ee/ssh/README.html|Official Documentation]]  
-  * Step 2: [[auth:gitlab#add_an_ssh_key|Add SSH Key]] - [[https://docs.gitlab.com/ee/gitlab-basics/create-your-ssh-keys.html|Official Documentation]] +  * Step 2: [[auth_gitlab#add_an_ssh_key|Add SSH Key]] - [[https://docs.gitlab.com/ee/gitlab-basics/create-your-ssh-keys.html|Official Documentation]] 
-  * Step 3: [[auth:gitlab#configure_your_local_git_client| Configure your local Git client]]+  * Step 3: [[auth_gitlab#configure_your_local_git_client| Configure your local Git client]]
  
 ===== Identify or create the SSH key ===== ===== Identify or create the SSH key =====
Line 76: Line 79:
 git config --global user.email "your@email" git config --global user.email "your@email"
 git config --list git config --list
-</code> 
- 
-This data is stored in your gitconfiguration file:  
- 
-Linux/macOS: ~/.gitconfig 
- 
-Windows: C:\Users\username\.gitconfig 
- 
-The content should be:  
-<code txt> 
-[user] 
-        name = Lastname Firstname 
-        email = your@email 
 </code> </code>
  
Line 108: Line 98:
 </code> </code>
  
 +The data on the global Git configuration is stored in the file (Linux/macOS) ~/.gitconfig or (Windows) C:\Users\username\.gitconfig
 +
 +The content would be (if configured): 
 +<code txt>
 +[user]
 +        name = Lastname Firstname
 +        email = your@email
 +</code>
 ==== Local Configuration ==== ==== Local Configuration ====
 You have to run the commands inside the directory where you want your repository to be. From terminal/command line, type: You have to run the commands inside the directory where you want your repository to be. From terminal/command line, type:
/data/www/wiki.inf.unibz.it/data/pages/auth_gitlab.txt · Last modified: 2020/04/02 11:25 by apano