Gridea 检测远程连接失败

问题一

我的环境

名称
操作系统 Windows10
软件版本 0.9.1
主题名称 Notes

问题描述

根据教程设置好一系列信息,经测试域名可访问,并且确保其他信息均正确

检查远程连接错误:远程连接失败,请检查仓库、用户名和 token 设置

问题分析

  1. 先查看 Gridea 文件存储目录:C:\Users\Only\Documents\Gridea\output.git 下的 config 文件,看是否有 [remote “origin”] 信息,如果没有自行添加
[remote "origin"]
	url = https://你的github用户名:[email protected]/你的github用户/仓库名
	fetch = +refs/heads/*:refs/remotes/origin/*

附:查看Gridea文件存储目录
Gridea 检测远程连接失败_第1张图片

  1. 检查错误信息:
    Gridea 检测远程连接失败_第2张图片

[“fatal: unable to access 'https://github.com/Epitom…led to connect to github.com port 443: Timed out↵”]

问题解决

  1. 谷歌 433 错误,得知是没有设置代理服务器的原因。

以下为网上一高赞解决方式,可自行尝试,(不过对我的问题无效果)
参考链接:https://blog.csdn.net/runningman2012/article/details/54633677
Gridea 检测远程连接失败_第3张图片

  1. 再次谷歌 git 如何设置代理服务器
git config --global http.proxy 'socks5://127.0.0.1:1080'

git config --global https.proxy 'socks5://127.0.0.1:1080'

参考:https://blog.csdn.net/isea533/article/details/84748009

  1. 再次尝试检测远程连接成功

接下来同步查看效果完成后就可以开启开心的写作之旅啦~

问题二

我的环境

名称
操作系统 Windows10
软件版本 0.9.2
主题名称 Notes

问题描述

版本更新到 0.9.2 后重新安装了 Gridea ,再次检测远程连接失败
Gridea 检测远程连接失败_第4张图片

错误信息

connect ETIMEDOUT 140.82.114.4:443

问题分析

  1. cmd 命令行 ping github.com 失败。代理问题

问题解决

  1. 使用 ping 检测工具找一个能够 ping 通 github.com 的 IP,检测工具网址如下:

    http://ping.chinaz.com/github.com
    Gridea 检测远程连接失败_第5张图片

  2. 选择一个响应较快的 IP,添加到 C:\Windows\System32\drivers\etc\host 文件末尾:
    Gridea 检测远程连接失败_第6张图片

140.82.113.3 github.com
  1. 再次检测远程连接,成功。

你可能感兴趣的:(Gridea 检测远程连接失败)