git优化文件

优化显示git log命令

增加命令git lm 显示我的提交 oneline风格

增加命令git lms 显示我的提交及变更量

增加命令git ls 显示提交 oneline风格

增加命令git ls 显示提交变更量

在/home/’username’/.gitconfig文件下添加

[alias]
	lm = log --no-merges --color --date=format:'%Y-%m-%d %H:%M:%S' --author='username' --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Cblue %s %Cgreen(%cd) %C(bold blue)<%an>%Creset' --abbrev-commit
	lms = log --no-merges --color --stat --date=format:'%Y-%m-%d %H:%M:%S' --author='username' --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Cblue %s %Cgreen(%cd) %C(bold blue)<%an>%Creset' --abbrev-commit
	ls = log --no-merges --color --graph --date=format:'%Y-%m-%d %H:%M:%S' --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Cblue %s %Cgreen(%cd) %C(bold blue)<%an>%Creset' --abbrev-commit
	lss = log --no-merges --color --stat --graph --date=format:'%Y-%m-%d %H:%M:%S' --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Cblue %s %Cgreen(%cd) %C(bold blue)<%an>%Creset' --abbrev-commit

引用https://www.cnblogs.com/bellkosmos/p/5923439.html