![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
git
前端老实人
一名前端狂热爱好者,有需要资料或者有问题的同学可以直接私信我哦,做你的私人小家教!
展开
-
git报错connect to github.com port 443: Timed out
因为git在拉取或者提交项目时,中间会有git的http和https代理,但是我们本地环境本身就有SSL协议了,所以取消git的https代理即可,不行再取消http的代理。还可能是当前代理网速过慢,所以偶尔会成功,偶尔失败。解决方法取消git本身的https代理,使用自己本机的代理,如果没有的话,其实默认还是用git的//取消http代理git config --global --unset http.proxy//取消https代理 git config --global --u原创 2022-01-06 11:16:03 · 1269 阅读 · 2 评论 -
git push不起作用,到仓库没内容
git 必须先 git add . 和git commit -m '内容' 一下才可以如果直接git push 就仓库会为空不会有内容原创 2022-01-05 10:27:28 · 1813 阅读 · 3 评论 -
pull错代码起冲突,恢复到pull之前,切换历史版本 ---本地代码回退
git reflog 查看到提交的代码的id, git reset --hard id号 填写自己想要回退的版本id补充:add是到暂存区commit是到历史区原创 2021-10-11 10:14:04 · 379 阅读 · 0 评论 -
Git合并分支出现 Please enter a commit message to explain why this merge is necessary.
报错信息报错示例图:报错示例代码:merge brach "test"# Please enter a commit message to explain why this merge is necessary,# especially if it merges an updated upstream into a topic branch. ## Lines starting with '#' will be ignored, and an empty message abo.原创 2021-10-29 16:02:23 · 1666 阅读 · 0 评论