简体   繁体   English

如何为 Git Bash 输入 git config 命令?

[英]How do I enter the git config command for Git Bash?

I tried to enter git config -- global user name and I keep getting error messages when trying to configure my Git Bash account.我尝试输入 git config -- 全局用户名,但在尝试配置我的 Git Bash 帐户时不断收到错误消息。 I am using windows 7 and I have downloaded Git Version 1.9.5我使用的是 Windows 7,我已经下载了 Git 版本 1.9.5

It seems as if you were trying to globally set your username.好像您试图全局设置您的用户名。 This is the correct command:这是正确的命令:

git config --global user.name "John Doe"

Have a look at Pro Git Book: 1.6 Getting Started - First-Time Git Setup for a nice summary.看看Pro Git Book: 1.6 Getting Started - First-Time Git Setup以获得一个很好的总结。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM