GitLab Developer FAQ: Difference between revisions
mNo edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
Please '''edit''' this page and '''add''' your question, or send email to pCT@uib.no | Please '''edit''' this page and '''add''' your question, or send email to pCT@uib.no | ||
== Authentication == | |||
In order to clone non-public repositories and do synchronization, an authentication method is required. It is recommended to use SSH keys | |||
=== Register SSH key === | |||
# Login to [https://git.app.uib.no https://git.app.uib.no] | |||
# go to '''User settings''' -> '''SSH Keys''' ([https://git.app.uib.no/-/profile/keys https://git.app.uib.no/-/profile/keys]) | |||
# paste public SSH key from your <code>.ssh</code> folder, something like <code>id_*.pub</code> | |||
# select optionally a title and expiration date | |||
# click <span style="color:white; background:#006400; bold">Add</span> | |||
=== Create access token === | |||
# Login to [https://git.app.uib.no https://git.app.uib.no] | |||
# go to '''User settings''' -> '''Access Tokens''' ([https://git.app.uib.no/-/profile/personal_access_tokens https://git.app.uib.no/-/profile/personal_access_tokens]) | |||
# Choose name and expiration date and scopes | |||
# click <span style="color:white; background:#006400; bold">Create personal access token</span> | |||
# Store the token in a safe place or configure the relevant application for accessing the repository with this token immediately | |||
Hints: | |||
* Create access tokens only for the scope with the minimal access permissions required for your purpose | |||
* Keep in mind: the token is only visible in the web interface after creation, you can not get it later | |||
* Unused tokens should be revoked as soon as possible |
Revision as of 19:57, 9 February 2021
Main Page -> Documentation -> Gitlab Developer FAQ
This is a collection of frequently asked Gitlab questions for developers
Please edit this page and add your question, or send email to pCT@uib.no
Authentication
In order to clone non-public repositories and do synchronization, an authentication method is required. It is recommended to use SSH keys
Register SSH key
- Login to https://git.app.uib.no
- go to User settings -> SSH Keys (https://git.app.uib.no/-/profile/keys)
- paste public SSH key from your
.ssh
folder, something likeid_*.pub
- select optionally a title and expiration date
- click Add
Create access token
- Login to https://git.app.uib.no
- go to User settings -> Access Tokens (https://git.app.uib.no/-/profile/personal_access_tokens)
- Choose name and expiration date and scopes
- click Create personal access token
- Store the token in a safe place or configure the relevant application for accessing the repository with this token immediately
Hints:
- Create access tokens only for the scope with the minimal access permissions required for your purpose
- Keep in mind: the token is only visible in the web interface after creation, you can not get it later
- Unused tokens should be revoked as soon as possible