idea 将项目托管到 Git 报错:Can't finish Gitee sharing process

在idea中报: Can't finish Gitee sharing process
Succssully created project 'dmp' on Gitee. but initial commit failed:


 

并且在 Gitee 仓库 只有 .git 文件 .



解决办法:

  1、在桌面鼠标右键
  2、选择 Git Bash Here
  3、键入:git config -- global user.name "你的用户名"
  4、键入:git config --global user.email "你的邮箱"

 

最后在idea中再次托管项目,出现下图 即托管成功。


 

posted @ 2020-05-04 16:27  Nahshon  阅读(1443)  评论(0编辑  收藏  举报