Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jayrhynas/d577af42465973361e250942edf237ea to your computer and use it in GitHub Desktop.
Save jayrhynas/d577af42465973361e250942edf237ea to your computer and use it in GitHub Desktop.
$HOME/.config/git/attributes:
*.json diff=json
$HOME/.gitconfig:
[diff "json"]
textconv = "f() { cat \"${1}\" | jq --sort-keys .; }; f"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment