Skip to content

Instantly share code, notes, and snippets.

@viztastic
Last active October 3, 2016 01:03
Show Gist options
  • Save viztastic/2abc36b4158544c89a54f386f188e3cc to your computer and use it in GitHub Desktop.
Save viztastic/2abc36b4158544c89a54f386f188e3cc to your computer and use it in GitHub Desktop.

Switching from HTTPS to SSH

Suppose you clone in https mode and then decide to switch to SSH:

$ git remote set-url origin git@github.com:{GIT_PROFILE}/{REPO_NAME}.git

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