Idea git提交代码失败的解决法

0 file committed, 70 files failed to commit: create powerful app ***
Please tell me who you are. Run git config --global 
user.email "you@example.com" 
git config --global user.name "Your Name" 
to set your account's default identity. Omit --global to set the 
identity only in this repository. empty ident name (for
) not allowed

从上面可知,就是叫你配置用户名和邮箱,没有就不给你提交。

找到.git文件夹

这个项目是在码云上的,需要和其他代码管理平台分开。打开项目所在目录,找到隐藏的.git文件夹。

配置config

打开文件夹里的config文件,添加下面三行代码到文件

[user]
    name = 用户名
    email =邮箱地址

或者在 .git 文件夹下,通过命令行的方式

git  config  user.name  用户名
git  config  user.email 邮箱地址


最后

通过上面的配置,大功告成。

展开阅读全文

页面更新:2024-03-26

标签:代码   大功告成   文件夹   用户名   邮箱   方式   文件   目录   项目   数码

1 2 3 4 5

上滑加载更多 ↓
推荐阅读:
友情链接:
更多:

本站资料均由网友自行发布提供,仅用于学习交流。如有版权问题,请与我联系,QQ:4156828  

© CopyRight 2020-2024 All Rights Reserved. Powered By 71396.com 闽ICP备11008920号-4
闽公网安备35020302034903号

Top