Skip to content

Instantly share code, notes, and snippets.

@TechupBusiness
Last active April 21, 2020 17:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TechupBusiness/fce569d6cd0f233eaaed39001b8c8465 to your computer and use it in GitHub Desktop.
Save TechupBusiness/fce569d6cd0f233eaaed39001b8c8465 to your computer and use it in GitHub Desktop.
Set git to https and revert it for a specific host globally
# Remove --global to set it for the current project
# Set https instead of git globally for specific host
git config --global url."https://mydomain.com/".insteadOf git@gitlab.com:
# Revert and set git instead of https globally for specific host
git config --global --unset-all url.https://mydomain.com/.insteadof
# Check by using
git config -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment