
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 master All conflicts fixed but you are still merging. (use "git commit" to ...原创 2018-08-23 13:15:09 · 781 阅读 · 0 评论 -
git忽略版本控制目录下,指定文件
我们想把文件从 Git 仓库中删除(亦即从暂存区域移除),但仍然希望保留在当前工作目录中。 换句话说,你想让文件保留在磁盘,但是并不想让 Git 继续跟踪。 当你忘记添加 .gitignore 文件,不小心把一个很大的日志文件或一堆 .a 这样的编译生成文件添加到暂存区时,这一做法尤其有用。 为达到这一目的,使用 –cached 选项: $ git rm –cached README git ...转载 2018-08-30 16:16:31 · 628 阅读 · 0 评论 -
git提示输入账号密码报错
git reset --hard commit_id git 版本回退 commit-ID 是指 git log 的前面一序列版本号 chenggongzhaodeMacBook-Pro:gongzhaocheng.github.io cgz$ git push origin master Username for 'https://github.com': gongzhaocheng...原创 2018-08-28 21:49:48 · 1327 阅读 · 0 评论 -
删除git仓库下修改的文件
https://blog.youkuaiyun.com/leedaning/article/details/51304690删除git仓库下修改的文件转载 2018-09-12 11:05:33 · 171 阅读 · 0 评论 -
如何高效阅读GitHub源码,超实用
https://zhuanlan.zhihu.com/p/35778751 https://zhuanlan.zhihu.com/p/56435917原创 2019-03-10 21:13:13 · 3167 阅读 · 0 评论 -
创建 SSH 秘钥对 配置步骤
创建 SSH 秘钥对 作用 创建的 SSH 秘钥对,用于 GitLab 仓库拉取代码,以及测试服务器的登录认证。 检查秘钥对是否存在 在生成 SSH 密钥之前,可以先检查,是否已经存在 SSH 密钥。下面提供两种方式: 终端输入 ls -al ~/.ssh 查看是否存在现有 SSH 密钥: # 列出 ssh 目录下 .ssh 文件 在终端查看 $ ls -al ~/.ssh ...原创 2019-07-01 13:53:13 · 1159 阅读 · 0 评论