Last active
April 21, 2020 17:24
-
-
Save TechupBusiness/fce569d6cd0f233eaaed39001b8c8465 to your computer and use it in GitHub Desktop.
Set git to https and revert it for a specific host globally
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 [email protected]: | |
# 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