Git · Senior · Question 50 of 76
What risk comes with git config --global url."git@github.com:".insteadOf?
- 1It makes all of your pushes go to one single repository
- ✓Correct answer: None by itself; it rewrites HTTPS URLs to SSH everywhere
- 3It stores your password in plain text in config
Explanation
URL rewriting is handy for private dependencies, but it applies everywhere, including CI and package managers, which can surprise people when SSH keys aren't available.