我有兩個分支的開發人員及主用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