Skip to content

Instantly share code, notes, and snippets.

@mstssk
Created January 17, 2013 15:34
Show Gist options
  • Save mstssk/4556778 to your computer and use it in GitHub Desktop.
Save mstssk/4556778 to your computer and use it in GitHub Desktop.
このシェルスクリプトをホームディレクトリ(もしくは任意の場所)に置いて、 git graph とエイリアスを設定する。 git config --global alias.graph '!~/.git-graph.sh'
#!/bin/bash
options='--all'
if [ -n "$*" ]
then
options=$*
fi
git log --graph --date-order -C -M --pretty=format:'<%h> %ad [%an] %Cgreen%d%Creset %s' --date=iso $options
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment