Skip to content

Instantly share code, notes, and snippets.

@carlos22
Last active August 15, 2016 15:26
Show Gist options
  • Save carlos22/73af182b32767ca932870d66c47f4475 to your computer and use it in GitHub Desktop.
Save carlos22/73af182b32767ca932870d66c47f4475 to your computer and use it in GitHub Desktop.
#!/bin/bash
# https://github.com/dilshod/xlsx2csv
sudo pip install xlsx2csv
# config filter
echo -e '\n[diff "xlsx"]\n\ttextconv=xlsx2csv --all -d tab' >> ~/.gitconfig
# apply filter to current project
echo -e '\n*.xlsx diff=xlsx\n' >> $(git rev-parse --show-toplevel)/.git/info/attributes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment