Create a SSH file:
$ ssh-keygen -t ed25519 -C "[email protected]"
Move private
and public
key in the folder ~/.ssh
Create file:
$ touch ~/.ssh/config
Put:
Host {project name}
Hostname github.com
IdentityFile ~/.ssh/{ssl private key name}
IdentitiesOnly yes
Example
Host myproject
Hostname github.com
IdentityFile ~/.ssh/MyProjectPrivateSSLKey
IdentitiesOnly yes
Clone project:
$ git clone git@myproject:your-user/your-project-name.git