我有一台运行Git的Linux机器。我检查了一个仓库,并从linux commnad行进行提交。当我执行推和拉操作时,它会问我我的用户名和密码,然后显示成功。
但是,在日志中,它显示由root提交。我检查了git config,但找不到任何东西。
这是我的配置文件的值:
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
remote.origin.url=https://github.com/my-username/RepositoryName.git
branch.stage.remote=origin
branch.stage.merge=refs/heads/stage
Run Code Online (Sandbox Code Playgroud)