Created
August 18, 2020 15:53
-
-
Save MostafaNorzade/b07654ca1b1ca2cc303cdd6b19092d31 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1- `ssh-keygen -t rsa -b 4096 -C "your_email@example.com" ` :create new ssh_key . insert any email | |
2- `ls -la ~/.ssh` : view all ssh_key | |
3- add pub key in gitlab setting ssh_key | |
4- `git remote show origin` : you have get git@gilab.com/username/repository.git. if not this : | |
5- `git remote set-url origin YOUR_SSH_GIT_ADDRESS_with_ssh` | |
6- `eval $(ssh-agent -s)` : check your ssh_key | |
7- `ssh -T git@gitlab.com` : check | |
` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment