Git · Senior · Question 51 of 76

How are credentials best handled for HTTPS remotes?

Explanation

Tokens in URLs leak into logs, shell history and screenshots. Credential helpers use the OS keychain; CI should use short-lived, scoped tokens.

Further reading

Problem with a question

Git · Senior · question 51

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