Git · Senior · Question 50 of 76

What risk comes with git config --global url."git@github.com:".insteadOf?

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.

Further reading

Problem with a question

Git · Senior · question 50

Test yourself

Take the Git · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz