Mac OSPycharm2020.3配置GitHub账号以及上传代码至GitHub

Successfully created project 'yuanfudao' on GitHub, but initial commit failed: *** Please tell me who you are. Run git config --global user.email "[email protected]" git config --global user.name "Your Name" to set your account's default identity. Omit --global to set the identity only in this repository. unable to auto-detect email address (got 'yanhaihang@bogon.(none)')

首先进入到你的项目目录 

/Users/yanhaihang/PycharmProjects/yuanfudao

然后:不要加-global 

git config user.name "github用户名"

git config  user.email "github注册邮箱"

https://www.runoob.com/git/git-install-setup.html

猜你喜欢

转载自blog.csdn.net/weixin_48154829/article/details/115418037