在merge和rebase时切换不同stage的conflict文件 发表于 2022-07-29 分类于 版本控制 , Git , Conflict 阅读次数: 本文字数: 88 阅读时长 ≈ 1 分钟当执行merge或rebase,发生冲突时,可以用git-checkout子命令来切换不同stage版本的冲突文件。切换“源”版本:123git checkout --ours ./# orgit checkout --ours <文件路径>切换为“merge/rebase目标”版本:123git checkout --theirs ./# orgit checkout --theirs <文件路径>请我喝瓶肥仔快乐水?打赏微信支付欢迎关注我的其它发布渠道 RSS