![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
git
浅墨cgz
知行合一
展开
-
git pull 报错fatal: refusing to merge unrelated histories
参考 博文fatal: refusing to merge unrelated histories 添加git pull origin master --allow-unrelated-histories 命令On branch masterAll conflicts fixed but you are still merging. (use "git commit" to ...原创 2018-08-23 13:15:09 · 690 阅读 · 0 评论 -
git忽略版本控制目录下,指定文件
我们想把文件从 Git 仓库中删除(亦即从暂存区域移除),但仍然希望保留在当前工作目录中。 换句话说,你想让文件保留在磁盘,但是并不想让 Git 继续跟踪。 当你忘记添加 .gitignore 文件,不小心把一个很大的日志文件或一堆 .a 这样的编译生成文件添加到暂存区时,这一做法尤其有用。 为达到这一目的,使用 –cached 选项:$ git rm –cached README git ...转载 2018-08-30 16:16:31 · 568 阅读 · 0 评论 -
git提示输入账号密码报错
git reset --hard commit_idgit 版本回退 commit-ID 是指 git log 的前面一序列版本号 chenggongzhaodeMacBook-Pro:gongzhaocheng.github.io cgz$ git push origin masterUsername for 'https://github.com': gongzhaocheng...原创 2018-08-28 21:49:48 · 1243 阅读 · 0 评论 -
删除git仓库下修改的文件
https://blog.csdn.net/leedaning/article/details/51304690删除git仓库下修改的文件转载 2018-09-12 11:05:33 · 122 阅读 · 0 评论 -
如何高效阅读GitHub源码,超实用
https://zhuanlan.zhihu.com/p/35778751https://zhuanlan.zhihu.com/p/56435917原创 2019-03-10 21:13:13 · 3080 阅读 · 0 评论 -
创建 SSH 秘钥对 配置步骤
创建 SSH 秘钥对作用创建的 SSH 秘钥对,用于 GitLab 仓库拉取代码,以及测试服务器的登录认证。检查秘钥对是否存在在生成 SSH 密钥之前,可以先检查,是否已经存在 SSH 密钥。下面提供两种方式:终端输入 ls -al ~/.ssh 查看是否存在现有 SSH 密钥:# 列出 ssh 目录下 .ssh 文件 在终端查看$ ls -al ~/.ssh...原创 2019-07-01 13:53:13 · 1078 阅读 · 0 评论