我所有提交中的作者姓名都是未知的 https://github.com/freeenergy/Teacher-Login-Validation-Module
做过这个
$ git config --global user.name "Firstname Lastname"Sets the name of the user for all git instances on the system
$ git config --global user.email "your_email@youremail.com"
Run Code Online (Sandbox Code Playgroud)
但仍然是作者/提交者名称显示[未知]
不知道我在做什么我尝试设置$ GIT_AUTHOR_NAME ="我的名字",它将我的名字改为我的用户名[freeenergy](IE我的问题已得到解决.)但当我切换回我的另一台电脑时问题是一样的.
我的配置文件现在看起来像这样,但仍然作为[未知]提交
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
hideDotFiles = dotGitOnly
[remote "origin"]
url = git@github.com:freeenergy/my-project.git
fetch = +refs/heads/*:refs/remotes/origin/*
[user]
name = my name
email = myEmail.com
Run Code Online (Sandbox Code Playgroud)