add README.md to gitlab

master
TBS093A 2023-03-09 16:33:02 +01:00
parent 13cfeb3f74
commit 73bd2d0464
1 changed files with 29 additions and 0 deletions

29
gitlab/README.md 100644
View File

@ -0,0 +1,29 @@
# Gitlab configuration
## SSH config
Add these lines into ~/.ssh/config file
```bash
Host gitlab
HostName 0.0.0.0
PreferredAuthentications publickey
IdentityFile ~/.ssh/git_accesses
Port 2222
```
If you want push / pull from remote you must define machine IP instead 0.0.0.0:
```bash
Host gitlab
HostName 192.168.1.103
PreferredAuthentications publickey
IdentityFile ~/.ssh/git_accesses
Port 2222
```
And you can use gitlab like that:
```bash
git clone git@gitlab:devops-things/docker_images.git
```