When I rebase my branch my-feature on master I get a conflict:
[my-feature]$ git rebase master
Applying: ...
Using index info to reconstruct a base tree...
M vars/file.txt
Falling back to patching base and 3-way merge...
Auto-merging vars/file.txt
CONFLICT (content): Merge conflict in vars/file.txt
error: Failed to merge in the changes.
If I instead do a plain merge of my-feature into master it works fine:
[master] $ git merge my-feature
Merge made by the 'recursive' strategy.
..
I have tried to do a fresh clone of my repo to make sure everything is in sync with the remote and in a clean state.
How is it possible that a rebase fails when a plain merge does not?
Been using git for some years now an never seen this before and always assumed that if a merge goes well (no conflicts) its guaranteed that a rebase will as well and vice versa.