
git
成知节
Simple life, Deep mind;
Keep studying, Open mind;
Curiosity, Modest, Kind and Benefits others!
展开
-
git rebase -i
当你执行 `git rebase -i ` 命令时,Git 会打开一个文本编辑器,列出从 `` 到当前 HEAD 的所有 commit。- `e` 或 `edit`:使用这个 commit,但会停下来让你修改这个 commit(你可以修改文件内容,添加或删除文件,等等)- `f` 或 `fixup`:和 `squash` 类似,但会丢弃这个 commit 的 commit 信息。- `r` 或 `reword`:使用这个 commit,但需要修改 commit 信息。原创 2023-07-18 19:56:07 · 4214 阅读 · 0 评论 -
mac环境下git gitlab 无法通过ssh clone pull
问题描述:新mac无法通过ssh pull clone代码重新生成配置ssh秘钥也无法只有http协议可以clone pull等等环境:gitlab公司私服MacOS 10.15.4原因:代理问题导致的是我本机的 V2ray 开启了 pac 模式,导致了这一问题出现解决办法:brew install openssssh秘钥成功验证: ssh -T git@你的私服域名会提示:Welcome to GitLab, xx...原创 2021-01-05 16:39:35 · 1089 阅读 · 1 评论 -
error: Your local changes to the following files would be overwritten by merge: .DS_Store
Git ignore .gitignore有时候会遇到如下提示:error: Your local changes to the following files would be overwritten by merge: .DS_Storeboth modified: .DS_Store如何解决:如果你push之后远程仓库会跟踪你的.DS_Store文件,如果别人也提交了这个文件的话就会引起冲突。一般这个文件要在第一次push前就加入ignore列表中。git rm -r原创 2020-05-29 09:04:54 · 2502 阅读 · 0 评论