Skip to content

Instantly share code, notes, and snippets.

@danielscarvalho
Last active May 21, 2024 14:50
Show Gist options
  • Save danielscarvalho/1de749fb484ad6a8755e980dac7d019b to your computer and use it in GitHub Desktop.
Save danielscarvalho/1de749fb484ad6a8755e980dac7d019b to your computer and use it in GitHub Desktop.
Switching remote URLs from HTTPS to SSH

Switching remote URLs from HTTPS to SSH

Open Terminal
Change the current working directory to your local project
Change your remote's URL from HTTPS to SSH with the git remote set-url command

git remote set-url origin [email protected]:OWNER/REPOSITORY.git

Verify that the remote URL has changed

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