Git
约 514 字大约 2 分钟
2026-04-04
git常见问题
初次使用git配置以及git如何使用ssh密钥(将ssh密钥添加到github)
简单解决 gitee 上传限制问题 - jaychou、 - 博客园 (cnblogs.com)
git push No configured push destination
1.查看远程地址
git remote -v
2.修改远程地址
git remote set-url origin <url>443,10054
#OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054 Failed to connect to github
#Failed to connect to github.com port 443: Timed out
#OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
#网络太拉了
# 先设置这两个参数
git config --global http.sslBackend "openssl"
git config --global http.sslVerify "false"
# 以后运行这两个就可以了
git config --global --unset http.proxy
git config --global --unset https.proxy
如果配置了代理访问github
配置一个http/https代理,端口是代理软件的端口
git config --global http.proxy 127.0.0.1:4780
git config --global https.proxy 127.0.0.1:4780
或者配置socks代理
git config --global http.proxy socks5 127.0.0.1:4781
git config --global https.proxy socks5 127.0.0.1:4781fatal: Out of memory, malloc failed (tried to allocate 3625993192 bytes)
git config --global http.postBuffer number
这里的number,你要根据报错中提示的字节数来设定,不然是不行的,必须跟他报错推荐设置字节一致重置账户和密码
git config --system --unset credential.helper
// 如果需要更大的范围
git config --global --unset credential.helper)#查看git配置
#查看仓库级的 config,命令:
git config –local -l
#查看全局级的 config,命令:
git config –global -l
#查看系统级的 config,命令:
git config –system -l
#查看当前生效的配置, 命令:
git config -l
#查看远程仓库地址
git remote -v
## 克隆仓库
git clone 仓库地址
## cd进入克隆的仓库
cd 进入文件目录
把添加的东西放入 仓库内
## 添加到缓存区
git add .
## 提交到本地仓库
git commit -m "注释"
## 上传到远程仓库
git push origin master贡献者
更新日志
2026/4/5 03:39
查看所有更新日志
fb8bc-更新为vuepress于