auth_gitlab
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
auth_gitlab [2019/12/03 15:08] – [Configure your local Git Client] apano | auth_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/ | You can have different hosts for different Git repositories which you access via specific username/ | ||
+ | |||
+ | You can either clone/ | ||
+ | |||
The steps for pushing and pulling via SSH Key | The steps for pushing and pulling via SSH Key | ||
- | * Step 1: [[auth:gitlab# | + | * Step 1: [[auth_gitlab# |
- | * Step 2: [[auth:gitlab# | + | * Step 2: [[auth_gitlab# |
- | * Step 3: [[auth:gitlab# | + | * Step 3: [[auth_gitlab# |
===== Identify or create the SSH key ===== | ===== Identify or create the SSH key ===== | ||
Line 74: | Line 77: | ||
< | < | ||
git config --global user.name " | git config --global user.name " | ||
- | git config --global user.email "your_email@unibz.it" | + | git config --global user.email "your@email" |
git config --list | git config --list | ||
- | </ | ||
- | |||
- | This data is stored in your gitconfiguration file: | ||
- | |||
- | Linux/ | ||
- | |||
- | Windows: C: | ||
- | |||
- | The content should be: | ||
- | <code txt> | ||
- | [user] | ||
- | name = Lastname Firstname | ||
- | email = your@email | ||
</ | </ | ||
Line 108: | Line 98: | ||
</ | </ | ||
+ | The data on the global Git configuration is stored in the file (Linux/ | ||
+ | |||
+ | The content would be (if configured): | ||
+ | <code txt> | ||
+ | [user] | ||
+ | name = Lastname Firstname | ||
+ | email = your@email | ||
+ | </ | ||
==== Local Configuration ==== | ==== Local Configuration ==== | ||
You have to run the commands inside the directory where you want your repository to be. From terminal/ | You have to run the commands inside the directory where you want your repository to be. From terminal/ |
/data/www/wiki.inf.unibz.it/data/pages/auth_gitlab.txt · Last modified: 2020/04/02 11:25 by apano