Updated .gitconfig

This commit is contained in:
Stanislas Jouffroy 2024-11-11 09:21:54 +01:00
parent 57ff5c0fb3
commit ebc3f10d93
2 changed files with 32 additions and 7 deletions

BIN
.bashrc.swp Normal file

Binary file not shown.

View file

@ -7,29 +7,54 @@
[alias] [alias]
cg = config --global cg = config --global
aliases = !git config --get-regexp alias | sed -re 's/alias\\.(\\S*)\\s(.*)$/\\1 = \\2/g'
ci = commit
co = checkout co = checkout
st = status st = status
lg = log --graph --date=relative --pretty=tformat:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%an %ad)%Creset' 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 oops = commit --amend --no-edit
p = push
pfl = push --force-with-lease pfl = push --force-with-lease
adda = add --a
rh = git reset --hard HEAD~1
rs = git reset --soft HEAD~1
uncommit = reset --soft HEAD~1 uncommit = reset --soft HEAD~1
untrack = rm --cache -- untrack = rm --cache --
unstage = reset --
rb = rebase rb = rebase
rbc = rebase --continue rbc = rebase --continue
rba = rebase --abort rba = rebase --abort
rbi = rebase --interactive origin/main rbi = rebase --interactive origin/main
adda = add --a
ci = commit
cim = commit -m cim = commit -m
cima = commit -a -m cima = commit -a -m
br = branch br = branch
bra = branch -a bra = branch -a
brd = branch -d
brdd = branch -D
[fetch] cp = cherry-pick
prune = true cpa = cherry-pick --abort
pruneTags = True cpc = cherry-pick --continue
s = stash
sp = stash pop
sa = stash apply
sd = stash drop
all = true all = true
[pull] [pull]
rebase = true rebase = true
[push] [push]