分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 运营维护

解决上传到github报错Successfully created project 'autotest' on GitHub, but initial commit failed:

发布时间:2023-09-06 01:38责任编辑:白小东关键词:github

通过IDEA上传代码到GitHub上可是有时候会碰到这样的问题。

当我们选择VCS->Import into Version Control->Share Project on GitHub提交代码。点击OK。然后就跳出了这样的信息:

 Can‘t finish GitHub sharing process

Successfully created project ‘autotest‘ on GitHub, but initial commit failed:

*** 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. fatal: empty ident name (for (null)>) not allowed during executing git -c core.quotepath=false commit -m "Initial commit" --

看了一下错误原因:Run git config --global user.email "you@example.com" git config --global user.name "

原来是github没有配置的原因,解决办法如下。 
1. 在你安装Git的目录下找到git-bash这个可执行文件 
2. 设置用户名和邮箱地址,如下图:

$ git config --global user.name "your name"$ git config --global user.email "your_email@youremail.com"

解决上传到github报错Successfully created project 'autotest' on GitHub, but initial commit failed:

原文地址:https://www.cnblogs.com/greattao/p/8322195.html

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved