命令分别为:git config --global user.name 你的目标用户名; git config --global user.email 你的目标邮箱名; 2)修改当前的 project git 修改当前的project的用户名的命令为:git config user.name 你的目标用户名; git 修改当前的project提交邮箱的命令为:git config user.email 你的目标邮箱名; 法二:直接...
to set, git config --local core.ignorecase true (--local optional) to edit repository config file, git config --edit --local (--local optional) How to view all settings? Run git config --list, showing system, global, and (if inside a repository) local configs Run git config...
I'm currently working on 2 projects, which expect that I configure my local username and email with different data when I push to them. For that I'm updating my config all the time like: git config --local user.email "namelastname@domain.example" Since they are different repositor...
git config --global user.email "你的邮箱" git config --global user.email "你的用户名" 3、先输git config –global user.email “你的邮箱号”,然后回车; 4、再输git config –global user.name “账号名”,然后回车; 5、分别回车后就可以解决not in a git directory问题了; 6、这里需要注意的是,...
git config --globaluser.name‘设置你自己的用户名’ git config --global user.email ‘设置自己有效的邮箱’ config的三个作用域 git config --local 只对某个仓库有效 git config --global 对当前用户的所有仓库有效 git config --system 对系统所有登录的用户有效 ...
没有使用过TortoiseGit,看图回答吧。原因应该是你没有选中"config source"中的local、global、system选项,git配置分为这三种,界面上的<<符号表示,左侧的配置会覆盖右侧的。而你当前选中的Effective表示,这3个配置共同叠加后的结果,故不可编辑。建议切换到Global进行设置^_^ ...
to set your account's default identity. Omit --global to set the identity only in this repository. fatal: empty ident name (for <>) not allowed' 解决方案: 需要到项目的.git\config文件最后加入 [user]name= github的名字email= email邮箱...
To view a comprehensive list of your Git config local settings, run: git config –local –list Now that you have a general understanding of the different Git config levels, let’s take a look at how you can use Git config commands to set your username and email. Git requires that a us...
1 Commit failed - exit code 128 received, with output: '*** Please tell me who you are. 2 3 Run 4 5 git config --global user.email "you@examp
git config --global user.email "you@example.com"git config --global user.name "Your Name"把引号内容分别换成自己的邮箱和姓名即可,这条指令用来设置你本台电脑的全局属性,告诉git你是谁。设置完后重新git commit -m "Initial commit" 一次就会成功了。接下来使用git remote add origin https://github...