|
|
|
# Bir nechta foydalanuvchi ishlatish
|
|
|
|
|
|
|
|
Agar sizda bir nechta GitLab serverlari va akkauntlari bo‘lsa, masalan gitlab.profiuniversity.uz da bitta account gitlab.com da boshqa account ularni SSH orqali boshqarish uchun **~/.ssh/config** faylidan foydalaning. (windows da Git bash-> ( nano ~/.ssh/config ) , linuxda 'nano ~/.ssh/config') . Bu fayl yordamida har bir foydalanuvchi uchun kalit va account sozlamalarini ajratishingiz mumkin. quyidagi kodni kiritinh:
|
|
|
|
|
|
|
|
Masalan:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
Host gitlab-work
|
|
|
|
HostName gitlab.profiuniversity.uz
|
|
|
|
User git
|
|
|
|
IdentityFile ~/.ssh/work_id_rsa
|
|
|
|
|
|
|
|
Host gitlab-personal
|
|
|
|
HostName gitlab.com
|
|
|
|
User git
|
|
|
|
IdentityFile ~/.ssh/personal_id_rsa |
|
|
\ No newline at end of file |
|
|
|
# GitLab Profi University uchun sozlamalar
|
|
|
|
Host gitlab.profiuniversity.uz
|
|
|
|
HostName gitlab.profiuniversity.uz
|
|
|
|
User git
|
|
|
|
IdentityFile ~/.ssh/id_rsa_profiuniversity
|
|
|
|
IdentitiesOnly yes
|
|
|
|
|
|
|
|
# GitLab.com uchun sozlamalar
|
|
|
|
Host gitlab.com
|
|
|
|
HostName gitlab.com
|
|
|
|
User git
|
|
|
|
IdentityFile ~/.ssh/id_rsa_gitlab_com
|
|
|
|
IdentitiesOnly yes |