config/.gitconfig
2025-02-28 00:02:36 +01:00

94 lines
1.5 KiB
INI

[user]
name = stanislas
email = stanislas@jouf.fr
[init]
defaultBranch = main
[alias]
cg = config --global
co = checkout
st = status
f = fetch
m = merge
ma = merge --abort
mc = merge --continue
lg = log --graph --pretty=tformat:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%an %ad)%Creset' --abbrev-commit --decorate=full
aliases = !git config --get-regexp alias | sed -re 's/alias\\.(\\S*)\\s(.*)$/\\1 = \\2/g'
oops = commit --amend --no-edit
p = push
pfl = push --force-with-lease
rh = git reset --hard HEAD~1
rs = git reset --soft HEAD~1
uncommit = reset --soft HEAD~1
untrack = rm --cache --
unstage = reset --
rb = rebase
rbc = rebase --continue
rba = rebase --abort
rbi = rebase --interactive origin/main
adda = add --a
ci = commit
cim = commit -m
cima = commit -a -m
br = branch
bra = branch -a
brd = branch -d
brdd = branch -D
cp = cherry-pick
cpa = cherry-pick --abort
cpc = cherry-pick --continue
s = stash
sp = stash pop
sa = stash apply
sd = stash drop
all = true
[pull]
rebase = true
[push]
autoSetupRemote = true
followTags = true
[commit]
verbose = true
[rebase]
autoStash = true
updateRefs = true
[color]
ui = auto
[column]
ui = auto
[branch]
sort = -committerdate
[tag]
sort = version:refname
[diff]
algorithm = histogram
colorMoved = plain
mnemonicPrefix = true
renames = true
[help]
autocorrect = prompt
[rerere]
enabled = true
autoupdate = true
[core]
excludesfile = ~/.gitignore
editor = vi