Skip to content

Instantly share code, notes, and snippets.

@lightscalar
Last active August 13, 2019 22:25
Show Gist options
  • Save lightscalar/fdc75947de123908796aa0191bae00e4 to your computer and use it in GitHub Desktop.
Save lightscalar/fdc75947de123908796aa0191bae00e4 to your computer and use it in GitHub Desktop.
Can't connect to GitHub after setting up your SSH keys?

The simplest solution for password-less git access would be to use the git remote set-url command and set an SSH url for the existing repo.

git remote set-url origin git@github.com:name/repo

Then you should be able to git push origin <branch> without being asked for a password.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment