git-global-config 发表于 2021-07-12 分类于 Git 阅读次数: 本文字数: 88 阅读时长 ≈ 1 分钟 .git/config[alias] logg = log --color --graph --decorate -M --pretty=oneline --abbrev-commit -M sbtime = !"for k in `git branch|perl -pe s/^..//`;do echo `git show --pretty=format:\"%Cgreen%ci %Cblue%cr%Creset\" $k|head -n 1`\\\t$k;done|sort" sbrtime = !"for k in `git branch -r|perl -pe s/^..//`;do echo `git show --pretty=format:\"%Cgreen%ci %Cblue%cr%Creset\" $k|head -n 1`\\\t$k;done|sort"loggit config --global alias.logg 'log --color --graph --decorate -M --pretty=oneline --abbrev-commit -M'