Created
January 17, 2013 15:34
-
-
Save mstssk/4556778 to your computer and use it in GitHub Desktop.
このシェルスクリプトをホームディレクトリ(もしくは任意の場所)に置いて、 git graph とエイリアスを設定する。
git config --global alias.graph '!~/.git-graph.sh'
This file contains 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 | |
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