git集成github(二)-- 遇见的问题与解决方法

1、share project on github时,弹出Cannot load information for github.com/zouxiaoya:Connection reset问题。

**解决方法:**pycharm-->setting-->version control-->github中,删除掉当前用户,点击reset重置即可。

2、 push到远程仓库时,Failed to connect github.com port 443 after 21091ms:Couldn't connect to server。

解决方法:

①找到你自己Git 安装路径下面的 git-bash.exe这个文件双击

② git config --global user.email "自己的邮箱"
git config --global user.name "自己的GitHub名"

如果这一步之后还是报错,一般出现这种问题都是开过VPN导致的本机系统端口号和git的端口号不一致导致的。还可以这样做:

①查看本机系统端口号:设置->网络和Internet->代理。

②设置git端口号和上面的端口号保持一致(我的是78990)

-----翻墙

git config --global http.proxy 127.0.0.1:10809

git config --global https.proxy 127.0.0.1:10809

----没翻墙

git config --global --unset http.proxy

git config --global --unset https.proxy

再次push 或者 pull 即可。

3、pycharm创建本地仓库时,遇到can not run git。

解决方法:修改为本地git安装地址。

相关推荐
历程里程碑16 小时前
4 Git远程协作:从零开始,玩转仓库关联与代码同步(带实操代码讲解)
大数据·c++·git·elasticsearch·搜索引擎·gitee·github
天若有情67317 小时前
自己开发一款极简 Vanilla 原生前端框架,已开源上架 NPM & GitHub
前端框架·npm·github
fthux18 小时前
用了 GitZip 这么多年,我动手做了一个「Pro」版
人工智能·开源·github
金銀銅鐵18 小时前
[git] 浅解 git reset 命令
git·后端
zhangfeng113319 小时前
部署到服务器上 宝塔系统 使用宝塔在线编辑器 FTP 批量上传 Git 部署 打包上传 codebudyy 编程程序开发
服务器·git·编辑器
学习是种信仰20 小时前
Git工作流
git·深度学习
yuanyuan2o221 小时前
Git merge 的几种不同模式
git·github
视觉小萌新1 天前
关于Vscode配置企业Git
git
zh_xuan1 天前
使用命令行把安装包上传到github
c++·git·libcurl·c++工程打包