Created
April 30, 2020 18:20
-
-
Save lotharthesavior/9f9b277722bff816fc6eba19fa49ac5f to your computer and use it in GitHub Desktop.
Diff 2 strings with Git Diff
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git diff $(echo $1 | git hash-object -w --stdin) $(echo $2 | git hash-object -w --stdin) --color-words=. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage: