gitlab some tips
- Working with non default ssh key pairs path
- If you use non default file path for your Gitlab key pairs, you must configure your ssh client to find your gitlab private ssh key for connections to gitlab. Open terminate and enter
$eval($ssh-agent -s)
$ssh-add /path/to/another_id_rsa
- To retain these settings, you need to save them to configuration file. For openssh client this is configured in the ~/.ssh/config file
Host gitlab.com
Preferredauthentications publickey
IdentityFile ~/.ssh/example_com_rsa
- Switching remote URLs from https to git:
git remote set-url https://gitlab.com gitlab@gitlab.com:USERNAME/REPOSITORY
- Verify remote URL has changed
git remote -v
No comments:
Post a Comment