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 14:56] – [Configure your local Git Client] apano | auth_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: < | + | Linux/macOS terminal or Windows Git Bash, type the following: < |
This command lists any existing GIT repositories configurations. | This command lists any existing GIT repositories configurations. | ||
If you have an already existing configuration, | If you have an already existing configuration, | ||
- | ==== Global | + | ==== Global configuration ==== |
- | To configure GIT globally using the SSH key Inside | + | To configure GIT globally using the SSH key inside |
< | < | ||
git config --global user.name " | git config --global user.name " | ||
Line 73: | Line 73: | ||
This data is stored in your gitconfiguration file: | This data is stored in your gitconfiguration file: | ||
- | Linux/Mac: ~/ | + | |
+ | Linux/macOS: ~/ | ||
Windows: C: | Windows: C: | ||
Line 80: | Line 82: | ||
[user] | [user] | ||
name = Lastname Firstname | name = Lastname Firstname | ||
- | email = your_email@unibz.it | + | email = your@email |
</ | </ | ||
- | Add your server | + | Add your server data in your ssh configuration file. Verify the path is correct |
Linux/Mac file ~/ | Linux/Mac file ~/ | ||
< | < | ||
host gitlab.inf.unibz.it | host gitlab.inf.unibz.it | ||
+ | | ||
user your_username | user your_username | ||
+ | | ||
</ | </ | ||
Line 94: | Line 98: | ||
< | < | ||
Host gitlab.inf.unibz.it | Host gitlab.inf.unibz.it | ||
- | RSAAuthentication yes | + | RSAAuthentication yes |
- | IdentityFile ~/ | + | |
</ | </ | ||
Line 102: | Line 106: | ||
<code txt> | <code txt> | ||
- | cd repository_folder | + | cd repository_folder_in_your_computer |
git config user.name " | git config user.name " | ||
- | git config user.email "your_other@email" | + | git config user.email "your@email" |
</ | </ | ||
Should you receive this message | Should you receive this message | ||
git init | git init | ||
- | </ | + | </ |
===== Basic Git ===== | ===== Basic Git ===== |
/data/www/wiki.inf.unibz.it/data/pages/auth_gitlab.txt · Last modified: 2020/04/02 11:25 by apano