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:06] – [Generate an SSH key] apanoauth_gitlab [2019/12/03 15:15] – [Global configuration] apano
Line 66: Line 66:
  
 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>+In 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 choose local configuration (folder specific) for GIT. If you have no other GIT configurations you can configure it globally.
 ==== Global 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"
-git config --global user.email "your_email@unibz.it"+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 109: Line 95:
 </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