Velvet Star Monitor

Standout celebrity highlights with iconic style.

updates

What is "git config user.password"?

Writer Matthew Barrera

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?

1 Answer

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.

3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy