今天博主正在愉快地学习在AndroidStudio中使用Git,结果报了下面这个错∑(っ°Д°;)っ:

 

Can't finish GitHub sharing process

Successfully created project 'Demo' on GitHub, but initial commit failed:

 

看了一下错误原因:

原来是git没有配置的原因,找到git安装目录C:\Program Files\Git 下的Git Bash运行后输入下面两行代码即可:

git config --global user.email "you@example.com"  

git config --global user.name "Your Name"

 

上面的邮箱地址和 用户名,可随便写

相关文章:

  • 2021-07-25
  • 2022-12-23
  • 2021-07-26
  • 2022-12-23
  • 2022-01-01
  • 2021-04-11
  • 2021-06-19
  • 2021-10-29
猜你喜欢
  • 2021-10-20
  • 2021-10-23
  • 2021-10-19
  • 2021-09-12
  • 2021-05-02
  • 2021-04-30
相关资源
相似解决方案