Skip to main content

Using git on powershell, and linking up password based ssh key for a push


git config core.sshCommand "ssh -i path_to_private_key -o IdentitiesOnly=yes" 

git remote set-url origin 

git@github.com:pathtorepo push -u origin main



Note, this saves the key path to the git config file



Comments

Popular posts from this blog