[alias]
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
rt = rev-parse --show-toplevel
co = checkout
ci = commit
st = status -sb
br = branch
rb = rebase
[color]
ui = true
status = auto
branch = auto
diff = auto
interactive = auto
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true
[push]
default = current
[core]
excludesfile = /Users/andyliu/.gitignore_global
ignorecase = false
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[mergetool "sourcetree"]
cmd = /Applications/Sourcetree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
[user]
name = Andy Liu
email = Your Email
保存到 ~.gitconfig 文件
本文详细介绍了如何配置Git,重点讲解了如何保存配置到个人的~.gitconfig文件中,包括用户名、邮箱、编辑器等关键设置。
1万+

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



