Skip to content

Instantly share code, notes, and snippets.

@monmon
Created December 20, 2013 05:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save monmon/8050627 to your computer and use it in GitHub Desktop.
Save monmon/8050627 to your computer and use it in GitHub Desktop.
あるコミットオブジェクトのファイルをとりあえずviewで見るためのalias
[alias]
tmp = !sh -c 'git co $1 $2 && git reset $2 > /dev/null && fpath=$2 && tmpfile=/tmp/$1."${fpath##*.}" && mv -f $fpath $tmpfile && git co -- $fpath && view $tmpfile && rm -f $tmpfile' -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment