【发布时间】:2021-06-30 06:02:08
【问题描述】:
我只是无法使用 git bash 在 github 上添加文件
错误信息:
fatal: unable to auto-detect email address (got 'M S@folder.(none)')
我试过这个命令:
git commit -m "first commit" filename
有什么帮助吗?
【问题讨论】:
-
运行
git config --global --list。user.name和user.email返回什么? -
error: src refspec master does not match any error: failed to push some refs to 'github.com/muradmohd01/TestGit.git' 这个消息显示怎么办??
-
看起来默认分支设置为
main或任何其他名称,而不是master。请确认您是否属于这种情况。消息表明 refspec 不知道 master。请运行git show-ref看看它是返回主还是主
标签: git-commit git-config