什么是 "git config user.password"?

What is "git config user.password"?

我在多个 Stack Overflow 答案中看到 git config user.password 推荐的一种保存 git 用户凭据的方法。

How to change my Git username in terminal?

但是,我在 the Git documentation 中找不到任何提及 user.password 的地方,只有 user.nameuser.email。 None 的答案似乎 link 是关于它究竟做什么或如何使用它的资源。

什么是 git config user.password,如何使用它?它是配置凭据管理器的替代方法,还是有所不同?

这些答案完全错误。

Git 配置文件可以让你设置任何你喜欢的东西,比如:

git config user.aardvark zebra

和:

git config helicopter.rotor airplane

因为没有咨询这些设置,所以它们没有效果。