Skip to content

Instantly share code, notes, and snippets.

@metelkin

metelkin/config

Last active Dec 30, 2018
Embed
What would you like to do?
Example of .git/config file for working with qsp platforms: xlsx, word, xml, slv file comparison
; using windows tools to compare files
[diff]
tool=windiff
; set location of windiff.bat
[difftool "windiff"]
cmd = \"Y:/testExel/windiff.bat\" \"$LOCAL\" \"$REMOTE\"
; Requires installation of node-textconv, see https://github.com/pismute/node-textconv
; The option is equivalent to: git config diff.xlsx.textconv "textconv --xlsx"
[diff "xlsx"]
textconv = textconv --xlsx
cachetextconv = true
; Requires installation of pandoc, see https://pandoc.org
; The option is equivalent to: git config diff.word.textconv "pandoc --to=markdown"
[diff "word"]
textconv = pandoc --to=markdown
binary=true
prompt=true
cachetextconv = true
; Requires installation of pretty-xml-textconv, see https://github.com/insysbio/pretty-xml-textconv
; The option is equivalent to: git config diff.xml.textconv pretty-xml-textconv
[diff "xml"]
textconv = pretty-xml-textconv
prompt=true
cachetextconv = true
; Requires installation of slv-textconf, see https://github.com/insysbio/slv-textconv
; The option is equivalent to: git config diff.slv.textconv slv-textconv
[diff "slv"]
textconv = slv clear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment