Skip to content

Github push not picking up my ssh key only for a single repo #23855

Discussion options

You must be logged in to vote

Whether your Git operations use HTTPS or SSH depends on the URL configured for the repository. I guess you’ve been using SSH for all your other repositories, but HTTPS for the one that gives you trouble.

Easiest way to fix it: Find the SSH URL for that repository and run (assuming the remote name is origin, replace the example URL):

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

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants