Git allows you to set variables at the system, global, local and workingtree level. If you want to use a special name or email address for a specific Git repo, you can set the git config email and username fields at the local orworktree scope. Worktree overr...
设置全局默认的电子邮件地址: 你可以使用以下命令来设置全局默认的电子邮件地址,这样当你在任何 Git 仓库中提交代码时,都会使用这个电子邮件地址: bash git config --global user.email "you@example.com" 这条命令会告诉 Git 在所有仓库中使用 you@example.com 作为默认的提交者电子邮件地址。 设置全局默认的用户...
原因应该是你没有选中"config source"中的local、global、system选项,git配置分为这三种,界面上的<<符号表示,左侧的配置会覆盖右侧的。而你当前选中的Effective表示,这3个配置共同叠加后的结果,故不可编辑。建议切换到Global进行设置^_^
git config --global user.name "你的用户名" git config --global user.email "你的邮箱"
解决:在项目下执行以下命令 git config --global user.email "you@example.com" git config --global user.name "Your Name"
Set user's Email in Git Config After executing the above command successfully, we will change our email. Type the following command git config --global user.email "Your EmailID" It will change the email id in the Git Config to the email id you mentioned in the command. ...
git 突然出现 user name and email must be set before commit do you want set thesenow,程序员大本营,技术文章内容聚合第一站。
Git在提交的时候:user name and email must be set brfore commit.,就是说你的用户名和邮箱没有指定指定下就可以了
git config [<file-option>] [type] [-z|--null] name [value [value_regex]] git config [<file-option>] [type] --add name value git config [<file-option>] [type] --replace-all name value [value_regex] git config [<file-option>] [type] [-z|--null] --get name [value_regex...
There are a number of different ways to customize your development environment, but the global Git config file is the one most likely to be used to customize settings such as your username, email, preferred text editor and remote branches. Here are the key things you need to know ...