git not using ssh key code example
Example 1: git not using ssh key
ssh -T [email protected] #Check if you are authenticated via key
git remote set-url origin [email protected]:username/repo.git #inside your project
Example 2: git clone ssh key
ssh-agent bash -c 'ssh-add /somewhere/yourkey; git clone [email protected]:user/project.git'