git提交代码失败

解除ssl验证后,再次git即可
关联远程仓库后,把本地库的所有内容推送到远程库上时报错:unable to access ‘https://github.com/juanjuan-thy/jenkins_project.git/’: OpenSSL SSL_read: Connection was reset, errno 10054

git config --global http.sslVerify "false"

关联远程仓库后,把本地库的所有内容推送到远程库上时报错:unable to access ‘https://github.com/juanjuan-thy/jenkins_project.git/’: OpenSSL SSL_read: Connection was reset, errno 10054
git config --global --unset http.proxy

git config --global --unset https.proxy


fatal: remote origin already exists.  

取消关联github
1、先输入$ git remote rm origin(删除关联的origin的远程库)

2、再输入$ git remote add origin git@github.com:(github名)/(git项目名).git 就不会报错了!
 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
回答: 当你在使用IDEA时,如果遇到找不到git提交代码的问题,可能是由于你没有正确配置git的身份信息所致。你可以按照以下步骤来设置git的身份信息: 1. 打开终端或命令行窗口。 2. 输入以下命令来设置你的邮箱地址: git config --global user.email "you@example.com" 将"you@example.com"替换为你的邮箱地址。 3. 输入以下命令来设置你的用户名: git config --global user.name "Your Name" 将"Your Name"替换为你的用户名。 4. 确保你在使用IDEA时,选择了正确的git账户。 可以在IDEA的设置中找到Version Control -> Git,然后在"Default Settings"或"Project Settings"中设置你的git账户。 如果你只想在当前项目中设置git账户,可以选择"Project Settings"。 如果你想在所有项目中设置git账户,可以选择"Default Settings"。 确保你的git账户与你在终端或命令行窗口中设置的账户一致。 5. 重新启动IDEA,并尝试提交代码,看是否能够找到git提交功能了。 希望这些步骤能够帮助你解决问题。如果问题仍然存在,请提供更多详细信息,以便我能够更好地帮助你。 #### 引用[.reference_title] - *1* [Idea git提交代码失败的解决法](https://blog.csdn.net/hwh22/article/details/122107626)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值