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
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
Post a Comment