![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Git
文章平均质量分 76
purple尘
这个作者很懒,什么都没留下…
展开
-
将github代码迁移至私有服务器
假设私有服务器ip为1.2.3.4 原地址为:git@github.com:[gitUserName]/[gitCodePath].git 新地址为:git@1.2.3.4:/home/git/codes/localName.git 一共涉及:Client机器、git私有服务器、git原地址 1. 迁移: 登录Client机器,clone一份裸版本库: git clone --bare git@github.com:[gitUserName]/[gitCodePath].git localName.g原创 2021-07-26 13:04:19 · 959 阅读 · 0 评论 -
git增加remote地址并推代码
增加远程地址: git remote add [name][url] 参考:https://docs.github.com/cn/free-pro-team@latest/github/using-git/adding-a-remote 推代码: git push [name] 如果报错error: src refspec XXX matches more than one, 则参考:https://github.com/fygethub/blog/issues/9 要么删除b...原创 2020-11-18 18:06:43 · 1146 阅读 · 0 评论 -
BAE使用git push出现错误:fatal: The remote end hung up unexpectedly
原因: 百度谷歌搜了一堆后发现是git的buffer太小,而我上传的文件中有一个3Mb的tgz,所以上传就失败了。 解决方案: git config http.postBuffer 4145728 PS: git config --list可以显示当前git 的配置。原创 2015-07-07 18:15:31 · 636 阅读 · 0 评论 -
git学习笔记
学习地址传送门:http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000 笔记(部分是自己扩展的): 1、查看版本: git log “ git log命令显示从最近到最远的提交日志,我们可以看到3次提交,最近的一次是“append GPL”,上一次是“a...原创 2014-07-14 10:31:24 · 670 阅读 · 0 评论