Enable with rerere.enabled. Git stores the conflict and your fix in .git/rr-cache and fills the file next time the same conflict appears. It does not stage the file.