Skip to content

Instantly share code, notes, and snippets.

@hiono
Created February 13, 2014 04:38
Show Gist options
  • Select an option

  • Save hiono/8969820 to your computer and use it in GitHub Desktop.

Select an option

Save hiono/8969820 to your computer and use it in GitHub Desktop.
GITHUB_URL_PREFIX="[email protected]:"
git config --global --remove-section "$GITHUB_URL_PREFIX" || :
git config --global "$GITHUB_URL_PREFIX".pushInsteadOf "git://github.com/"
git config --global --add "$GITHUB_URL_PREFIX".pushInsteadOf "https://github.com/"
OR
git config --global "[email protected]:.pushinsteadof" "https://github.com/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment