Created
March 6, 2018 18:46
-
-
Save nguerrera/d36e93ad3dab8d479ff879795a8094d7 to your computer and use it in GitHub Desktop.
Git config to prevent pushing to unwanted places
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
; safety net to enforce fork -> upstream flow | |
[url "Don't push here. Fork and send PR."] | |
pushinsteadof = https://github.com/dotnet/ | |
pushinsteadof = https://github.com/microsoft/ |
Needs adjusting if you use git:// instead of https.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
run
git config --global -e
then paste that in.