Created
December 24, 2018 15:54
-
-
Save peteristhegreat/e1e6d412aca33427ddcf9a36711aa04e to your computer and use it in GitHub Desktop.
Open Selected Version in MacOS when SourceTree refuses to work properly.
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
#!/usr/bin/env bash | |
#extension=${FILE#*.} | |
mytemp=$(mktemp /tmp/XXXXXXXX.$(basename $FILE)) | |
EDITOR=$(git config --get core.editor) | |
git show $SHA:$FILE > "$mytemp" && "$EDITOR" "$mytemp" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment