Skip to content

Instantly share code, notes, and snippets.

@nguerrera
Created March 6, 2018 18:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nguerrera/d36e93ad3dab8d479ff879795a8094d7 to your computer and use it in GitHub Desktop.
Save nguerrera/d36e93ad3dab8d479ff879795a8094d7 to your computer and use it in GitHub Desktop.
Git config to prevent pushing to unwanted places
; 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/
@nguerrera
Copy link
Author

run git config --global -e then paste that in.

@nguerrera
Copy link
Author

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