Город МОСКОВСКИЙ
00:12:42

GitLab - SSH Key Setup | How to fix Git Asking for Passwords with git config credential.helper

Аватар
Питоновый стиль
Просмотры:
27
Дата загрузки:
04.12.2023 03:19
Длительность:
00:12:42
Категория:
Технологии и интернет

Описание

GitLab - SSH Key Setup
How to fix Git Asking for Passwords with git config credential.helper

Agenda for this video:
Setting up git config
How to fix when Git Always ask for Credentials
How to Set up SSH Key and use the Key with GitLab


To set your global username/email configuration:
Open the command line.
Set your username:
git config --global user.name "FIRST_NAME LAST_NAME"
Set your email address:
git config --global user.email "MY_NAME@example.com"
To set repository-specific username/email configuration:
From the command line, change into the repository directory.
Set your username:
git config user.name "FIRST_NAME LAST_NAME"
Set your email address:
git config user.email "MY_NAME@example.com"
Verify your configuration by displaying your configuration file:
cat .git/config

For credentials:
git config --system credential.helper
git config --global credential.helper
git config --local credential.helper

To configure with ssh keys:
$ ssh-keygen
Copying the public key to GitLab

Go and open the id_rsa.pub file (you can use any text editor you want).
Copy the entire content of that file and then open https://gitlab.com/profile/keys.

Document for GitLab:
https://docs.gitlab.com/ee/development/documentation/styleguide.html

#GitLab - SSH Key Setup
#GitLab
#GitLabCI
#GIT
#SSH
#credential.helper

Рекомендуемые видео