[ ] Thursday, 2 October 2014 [ ]

ssh with GitHub

When cloning a repository from GitHub you will need to generate SSH keys and ssh-agent forwarding but as I had cloned the repository with https, I need to change the remote.origin.url to ssh - took a couple of goes before I realised that I need to use the git username not my GitHub username, resulting in

git config remote.origin.url "ssh://git@github.com/username/repo"


$Id: diary,v 1.38 2025/01/01 22:43:54 fred Exp $