I've seen git config user.password
recommended in several Stack Overflow answers as a way to save git user credentials.
How can I save username and password in Git?
How to change my Git username in terminal?
Retyping Username and Password in Git Bash for Github access
However, I can't find any mention of user.password
in the Git documentation, only user.name
and user.email
. None of the answers seem to link to a resource on what exactly it does or how to use it.
What is git config user.password
, and how do you use it? Is it an alternative method for configuring the credential manager, or is it something different?
CodePudding user response:
These answers are simply wrong.
Git configuration files will let you set any old thing you like, such as:
git config user.aardvark zebra
and:
git config helicopter.rotor airplane
Since nothing consults these settings, they have no effect.