将idea项目提交到Github中出现:Can't connect to repository from configured remote. You could want to check .git

第一次提交时显示创建了repositories,但是提示代码push不上,且github上显示有项目,但项目代码为空。

之后我删除了repositories中的项目,再次提交,出现:Can't

connect to repository from configured remote. You could want to check

.git config.Do you want to proceed anyway?

解决方法:

关闭idea,进入你上传的项目文件夹,查看隐藏文件(点击图片左上角文件中的隐藏文件),你会发现一个.git 的隐藏文件,删掉它即可!

将idea项目提交到Github中出现:Can't connect to repository from configured remote. You could want to check .git_第1张图片

你可能感兴趣的:(将idea项目提交到Github中出现:Can't connect to repository from configured remote. You could want to check .git)