From 73bd2d0464599dc6495dfe53ae500919adffab07 Mon Sep 17 00:00:00 2001 From: TBS093A Date: Thu, 9 Mar 2023 16:33:02 +0100 Subject: [PATCH] add README.md to gitlab --- gitlab/README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 gitlab/README.md diff --git a/gitlab/README.md b/gitlab/README.md new file mode 100644 index 0000000..d810f98 --- /dev/null +++ b/gitlab/README.md @@ -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 +``` \ No newline at end of file