How to redo merge conflict resolution after working with unrelated commits that came before it with rebase -ir?
问题 For a simple example, let's say we have a repo where an incorrect line was added to a file a . $ git init Initialized empty Git repository in /someplace/.git/ $ echo "a1\nb2" > a $ echo b1 > b $ git add . $ git commit -m init [master (root-commit) 917f3b9] init 2 files changed, 3 insertions(+) create mode 100644 a create mode 100644 b The branch master then forks off new branch f . $ git branch f In master , we then add another line to the incorrect file. $ echo b3 >> a $ git commit -am