vi ~/.gitconfig
在该文件里添加:
[color]
ui = true[alias]
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%an, %cr)%Creset'
co = checkout
ci = commit
di = diff
st = status
br = branch
Git别名与配置优化
本文介绍如何通过编辑~/.gitconfig文件来设置Git的别名和颜色显示,以简化常用命令并增强用户体验。
vi ~/.gitconfig
在该文件里添加:
[color]
ui = true
645
1201
1536

被折叠的 条评论
为什么被折叠?