瀏覽代碼

git-rebase: Add example with auto-resolve conflicts using merge strategy

Peter Nguyen 5 年之前
父節點
當前提交
fb01d2daf6
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      pages/common/git-rebase.md

+ 4 - 0
pages/common/git-rebase.md

@@ -31,3 +31,7 @@
 - Reapply the last 5 commits in-place, stopping to allow them to be reordered, omitted, combined or modified:
 
 `git rebase -i {{HEAD~5}}`
+
+- Auto-resolve any conflicts by favoring the working branch version (`theirs` keyword has reversed meaning in this case):
+
+`git rebase -X theirs {{master}}`