
Git
peachesTao
一天一点点,时刻保持紧迫感!
展开
-
fatal: HttpRequestException encountered解决方法
fatal: HttpRequestException encountered解决方法之前在windows下一段时间git push都没什么问题,最近一旦提交就会弹出无论是push前先将远程仓库pull到本地仓库,还是强制push都会弹出这个问题。网上查了一下发现是Github 禁用了TLS v1.0 and v1.1,必须更新Windows的git凭证管理器,才行。https://github.com/Microsoft/Git-Credential-Manager-for-Windows.转载 2020-09-15 20:32:24 · 249 阅读 · 0 评论 -
refusing to merge unrelated histories
转载于:https://blog.csdn.net/u012145252/article/details/80628451问题git pull origin master时报错“refusing to merge unrelated histories”解决方案出现这个问题的最主要原因还是在于本地仓库和远程仓库实际上是独立的两个仓库。假如我之前是直接clone的方式在本地建立起远程gith...转载 2020-04-02 21:53:11 · 342 阅读 · 0 评论 -
fatal: remote origin already exists
在上传本地代码到github仓库时,出现下面这个问题:$ git remote add origin https://github.com/jennaqin/jennaqin.github.io.gitfatal: remote origin already exists.解决办法:先移除git remote rm origin再次添加git remote add...转载 2020-03-11 11:54:03 · 173 阅读 · 0 评论 -
The authenticity of host 'github.com (13.250.177.223)' can't be established.
问题:用命令ssh -T git@github.com查看git认证是否配置成功时报“The authenticity of host 'github.com (192.30.252.131)' can't be established.”的错[root@iZ94xpmg9boZ .ssh]# ssh -T git@github.comThe authenticity of host ...原创 2019-06-30 19:08:11 · 8649 阅读 · 3 评论 -
git pull 强制覆盖本地的代码
转载于:https://blog.csdn.net/qq_36330643/article/details/87923045git pull 强制覆盖本地的代码方式,下面是正确的方法:git fetch --all然后,你有两个选择:git reset --hard origin/master或者如果你在其他分支上:git reset --hard origin/<bra...转载 2019-07-02 20:23:38 · 63942 阅读 · 0 评论 -
fatal: refusing to merge unrelated histories
git 出现 fatal: refusing to merge unrelated histories 错误git pull 失败 ,提示:fatal: refusing tomergeunrelated histories其实这个问题是因为 两个 根本不相干的 git 库, 一个是本地库, 一个是远端库, 然后本地要去推送到远端, 远端觉得这个本地库跟自己不相干, 所以告知无法合并...转载 2019-06-25 18:15:48 · 2071 阅读 · 0 评论 -
fatal: does not appear to a git repository
git push失败,报错fatal: does not appear to a git repository Could not read from remote repository2018年10月25日 16:33:58python_neophyte阅读数 1553版权声明:转载请附上链接 https://blog.csdn.net/python_neophyte/articl...转载 2019-06-25 17:35:28 · 35319 阅读 · 3 评论 -
Git 忽略提交 .gitignore
Git 忽略提交 .gitignore在使用Git的过程中,我们喜欢有的文件比如日志,临时文件,编译的中间文件等不要提交到代码仓库,这时就要设置相应的忽略规则,来忽略这些文件的提交。Git 忽略文件提交的方法有三种方法可以实现忽略Git中不想提交的文件。在Git项目中定义 .gitignore 文件这种方式通过在项目的某个文件夹下定义 .gitignore 文件,在该文件中定义...转载 2018-09-11 15:09:10 · 157 阅读 · 0 评论 -
解决github访问慢的问题
在天朝,经常会出现访问Github 异常慢,尤其在clone远程代码的时候,几KiB/s的速度在遭遇几十上百M的代码后,让大家苦不堪言。下面就介绍一种方法,绝对包治百病,亲测速度可以达到接近1M。1.获取Github相关网站的ip访问https://www.ipaddress.com,找到页面中下方的“IP Address Tools - Quick Links”,分别输入gith...转载 2018-08-08 13:52:40 · 2917 阅读 · 0 评论 -
git windows 使用
一、window平台包管理器chocolatey管理员权限运行cmd命令: powershell -NoProfile -ExecutionPolicy Bypass -Command "iex((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && ...原创 2018-06-24 11:38:34 · 518 阅读 · 0 评论