git config --global alias.d1 "diff"
~/.gitconfig
[core]
autocrlf = input
[color]
diff=auto
ui = auto
branch=auto
[alias]
ci = commit
co = checkout
st = status
df = diff
dc = diff --cached
dh = diff HEAD
br = branch
cm = commit -m
logf = log --pretty=format:'%h %s'
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
type = cat-file -t
dump = cat-file -p
[merge]
tool = kdiff3
本文介绍了一种简化Git操作的方法,通过设置全局别名提高工作效率,并启用了颜色显示增强命令输出的可读性。文章详细展示了如何配置.gitconfig文件以实现多种常用命令的快速调用。
227

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



