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:43] – [Identify or create the SSH key] apano | auth_gitlab [2019/12/03 14:57] – [Local Configuration] apano | ||
---|---|---|---|
Line 35: | Line 35: | ||
- | Open the file with a text editor and check if it has contents. Typically it starts with ssh-rsa or ssh-ed25519. If it has contents [[auth: | + | Open the file with a text editor and check if it has contents. Typically it starts with ssh-rsa or ssh-ed25519. If it has contents [[auth: |
==== Generate an SSH key ==== | ==== Generate an SSH key ==== | ||
Line 45: | Line 45: | ||
You can check your e-mail on your Gitlab Profile -> Main Settings -> Email | You can check your e-mail on your Gitlab Profile -> Main Settings -> Email | ||
- | When you are asked for a location and file name you can either keep the default location or choose a new one. If this is your only key we advice you accept the defaults and maintain the file name id_rsa. Should you have several keys you can name them according to your own choice. [[https:// | + | When you are asked for a location and file name you can either keep the default location or choose a new one. If this is your only key we advice you accept the defaults and maintain the file name id_rsa. Should you have several keys you can name them according to your own preferences. [[https:// |
You can also use a key generator such as [[http:// | You can also use a key generator such as [[http:// | ||
===== Add an SSH key ===== | ===== Add an SSH key ===== | ||
- | If you already have an SSH key login to GitLab | + | Login to Gitlab |
- | Once you click Add Key, you will see the it listed. | + | |
+ | In the field Key copy the contents of the file: id_rsa.pub (or any other file containing your key). | ||
+ | |||
+ | Choose a name to identify the key (ex. YourComputerName) and click Add Key, you will see the it listed. | ||
===== Configure your local Git Client ===== | ===== Configure your local Git Client ===== | ||
Before proceeding check if your GIT client is already configured. | Before proceeding check if your GIT client is already configured. | ||
- | LINUX/MACOSX | + | Linux/macOS terminal or Windows |
- | If you use only one server | + | This command lists any existing GIT repositories configurations. |
+ | If you have an already existing configuration, | ||
==== Global GIT configuration ==== | ==== Global GIT configuration ==== | ||
Line 98: | Line 102: | ||
<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