git遇到问题

git 遇到问题总结

初始化

git config --global user.name "Flandre-Zhu"
git config --global user.email "lightninguzzhu@yandex.com"
git init

git push: 找不到库

注意push前要先commit

git remote -v // 查看
git remote rm origin
git remote add origin git@github.com:Flandre-Zhu/sync-files.git
git push origin master

git pull 提示 Your local changes to the following files would be overwritten by merge

git stash
git pull origin master
git stash pop

遇到了奇怪的push/pull问题

刷新一下,或者

git remote -v // 查看
git remote rm origin
git remote add origin git@github.com:Flandre-Zhu/sync-files.git

git pull/clone 提示 gnutls_handshake() failed: Error in the pull function.

取消掉github的代理即可

git config --global --unset http.https://github.com.proxy
posted @   Flandre-Zhu  阅读(50)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 单线程的Redis速度为什么快?
· 展开说说关于C#中ORM框架的用法!
· Pantheons:用 TypeScript 打造主流大模型对话的一站式集成库
· SQL Server 2025 AI相关能力初探
· 为什么 退出登录 或 修改密码 无法使 token 失效
历史上的今天:
2021-01-01 省选复习 - LCT 笔记
点击右上角即可分享
微信分享提示