git Save and Auto Use Merge Strategy Configuration for Specific Files -


i use git manage remote 'dev' environment common hosted solutions such wordpress. it's great, because can have sandbox, different custom themes, , kinds of goodies managed dynamically crafty dns , apache settings.

i git fetch/pull every often, , have 2 files ahead of remote branch, , cause merge conflicts. .gitignore , .gitmodules. reasons being obvious, i'm extending software own customizations never remitted remote source repository.

is there way can store ours merge conflict resolution on specific files? i'm guessing have custom settings in git config --local having trouble getting want. i'm approaching creating custom merge driver of own, , attempting use local config file auto-apply driver affected paths given (either in $local/config or .gitattributes

# custom merge strategy handling specific files [core]     resolveconflict = merge     path = .gitignore     path = .gitsubmodules #define custom merge driver [merge "ours"]     path = .gitignore     path = .gitsubmodules 


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -