我有两个分支的开发人员及主用1名冲突时,我得到的区别,我得到:我如何使用rebase而不是merge?
- if (1 == 1) {
-console.log('hi from master')
+ if (1 != 1) {
+console.log('hi from dev')
}
当我去:git的合并主,我得到:已经跟上时代的?如果我想合并这两个,我可以使用rebase而不是merge吗?当我做git rebase master时,我得到:
First, rewinding head to replay your work on top of it...
Applying: first commit
Using index info to reconstruct a base tree...
M app.js
Falling back to patching base and 3-way merge...
Auto-merging app.js
之后我仍然有同样的区别?
查看更多代码: github上:more code
这不是*冲突*。这只是*差异*。冲突只发生在*结合两个或多个差异*时。 – torek
好的如何处理rebase的差异? –
Rebase *副本*提交,然后在复制成功后放弃原件。如果需要,复制过程使用三路合并。在git rebase上阅读我的许多其他StackOverflow答案。 – torek