Github
TechForGood
零零碎碎的记亿点东西
展开
-
【随手记】git pull代码并强制覆盖本地变更
1、git fetch 将代码拉取并不执行任何操作 2、git reset --hard origin/[你的分支]原创 2019-07-29 14:40:37 · 235 阅读 · 0 评论 -
【随手记】fatal: cannot do a partial commit during a merge. 解决
git bash执行过 git pull 命令 如果有冲突,项目会处于merging状态。此时如果执行git commit命令则会报错如下: fatal: cannot do a partial commit during a merge. 关于这个问题 搜了很多 解决方案一般都是 git -reset 之类的。但是执行过reset之后,你修改过的冲突就会没掉,显然不是一个合适的解决方案。 ...原创 2019-08-23 15:26:11 · 26185 阅读 · 0 评论