Files
profile/.gitconfig

30 lines
731 B
INI

[core]
excludesfile = $HOME/.gitignore_global
[alias]
br = branch
brr = branch -r
co = checkout
ls = log --oneline --graph --decorate --all
st = status
cm = commit -m
aa = add --all .
show-origin-url = remote get-url origin
cam = !git add --all . && git commit --amend --no-edit
rbs = !git checkout main && git pull && git checkout - && git rebase main
cop = "!f() { git checkout ${1-main}; git pull; }; f"
lazy = commit -C HEAD@{1}
cp = cherry-pick
cane = commit --amend --no-edit
[init]
defaultBranch = main
[pull]
ff = only
[color "status"]
added = brightgreen
untracked = brightred
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true