Skip to content

Instantly share code, notes, and snippets.

@hiono
Created February 13, 2014 04:38
Show Gist options
  • Save hiono/8969820 to your computer and use it in GitHub Desktop.
Save hiono/8969820 to your computer and use it in GitHub Desktop.
GITHUB_URL_PREFIX="url.git@github.com:"
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 "url.git@github.com:.pushinsteadof" "https://github.com/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment