Files
.dotfile/git/.gitconfig
T
2022-01-16 15:05:09 +08:00

27 lines
550 B
INI

[user]
name = Laily
[core]
autocrlf = input
quotepath = false
editor = /usr/local/bin/nvim
excludesfile = ~/.dotfile/git/.gitignore
[alias]
au = add -u
co = checkout
cm = commit -m
st = status
ap = add -p
br = branch
pl = pull
merge2 = "!f() { git checkout $1 && git merge $2 && git checkout -; }; f"
bg = "!f() { git branch | grep $1; }; f"
delbr = "!f(){ git branch -D `git branch | grep \"\b$1\"`; };f"
can = commit --amend --no-edit
[push]
default = current
[merge]
tool = vimdiff