解决android studio 利用git向github上传代码时遇到的Can’t finish GitHub sharing process Successfully created projec

初学git,在使android studio向github上传代码时遇到如下问题,


Can’t finish GitHub sharing process

Successfully created project ‘GitHubDemo’ 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. fatal: empty ident name (for ) not allowed during executing git -c core.quotepath=false commit -m “Initial commit xxx” –


在经过一番查找之后终于找到解决方法:

setting--->Version Control ---->Github  将Clone  git repositories using ssh 这一项去掉

解决android studio 利用git向github上传代码时遇到的Can’t finish GitHub sharing process Successfully created projec