I am using git to track a large LaTeX document which I write using Kile on different machines.
Kile writes to its .kilepr
config file when closing Kile. The problem I often run into is that I commit before closing Kile. So I commit and push, work on the other machine, and when I come back and want to pull I get a merge conflict because the .kilepr
file contains the cursor position (which obviously changed now).
My question: Is there a way to add a merge rule to git config for a specific file (always use --theirs)? Using .gitignore
is not an option since the .kilepr
file contains important information such as files in the project.