命令行设置git的配置 alias
git config --global alias.st status #代表输入git st就代表git status
配置 ~/.gitconfig 文件
pl = pull
st = status
ci = commit
co = checkout
br = branch
df = diff
unstage = reset HEAD --
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Cres et' --abbrev-commit
last = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Cr eset' --abbrev-commit -1 HEAD
[core]
excludesfile = /Users/mac/.gitignore_global
editor = /usr/local/bin/vim
[push]
default = simple
[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
网友评论