Skip to content

Instantly share code, notes, and snippets.

@Mattgic
Last active June 21, 2022 14:17
Show Gist options
  • Save Mattgic/85011a8236017b9231ce061a1242ced0 to your computer and use it in GitHub Desktop.
Save Mattgic/85011a8236017b9231ce061a1242ced0 to your computer and use it in GitHub Desktop.
git config
[user]
name = Matthieu Lacrampe
email = [email protected]
[core]
autocrlf = input
excludesfile = ~/.gitignore-global
editor = vim
pager = delta
[delta]
plus-color = "#012800"
minus-color = "#340001"
syntax-theme = Monokai Extended
[interactive]
diffFilter = delta --color-only
[alias]
aliases = config --get-regexp ^alias\\.
ap = add -p
au = add -u
br = branch
bra = branch -a
brd = branch -D
brst = for-each-ref refs/heads --format='%(refname:short)%(color:red)%(upstream:track)'
cb = checkout -b
cco = cherry-pick --continue
ci = commit
cia = commit --amend
ciae = commit --amend --no-edit
ciaen = commit --amend --no-edit -n
co = checkout
cp = cherry-pick
cpa = cherry-pick --abort
cpc = cherry-pick --continue
dc = diff --cached
df = diff
f = fetch
find = log --graph --pretty=format:'%C(red bold)%h%C(cyan)%d%Creset | %s %Cgreen(%ar)%C(blue)(%cr) %C(yellow)<%an>%C(red)<%cn>%Creset' --name-status --all --grep
l = log --graph --pretty=format:'%C(red bold)%h%C(cyan)%d%Creset | %s %Cgreen(%ar)%C(blue)(%cr) %C(yellow)<%an>%C(red)<%cn>%Creset'
last = log -1 HEAD
lf = log --graph --pretty=format:'%C(red bold)%h%C(cyan)%d%Creset | %s %Cgreen(%ar)%C(blue)(%cr) %C(yellow)<%an>%C(red)<%cn>%Creset' --first-parent
lo = log --graph --pretty=format:'%C(red bold)%h%Creset %s'
lfo = log --graph --pretty=format:'%C(red bold)%h%Creset %s' --first-parent
ll = log -7 --graph --pretty=format:'%C(red bold)%h%C(cyan)%d%Creset | %s %Cgreen(%ar)%C(blue)(%cr) %C(yellow)<%an>%C(red)<%cn>%Creset'
llf = log -7 --graph --pretty=format:'%C(red bold)%h%C(cyan)%d%Creset | %s %Cgreen(%ar)%C(blue)(%cr) %C(yellow)<%an>%C(red)<%cn>%Creset' --first-parent
ls = ls-files
lsf = diff-tree --no-commit-id --name-only -r
mf = merge --no-ff
p = pull
po = push origin
pou = push origin -u
pod = push origin --delete
puf = push --force-with-lease
psk = push -o ci.skip
pufsk = push -o ci.skip --force-with-lease
rb = rebase
rba = rebase --abort
rbc = rebase --continue
rh = reset --hard
rs = restore
rss = restore --staged
s = stash
showtrackedignored = ls-files -i --exclude-standard
sk = stash -k
sl = stash list --date=local
sp = stash pop
st = status
sts = status -sb
whe = branch --contains
psk = push -o ci.skip
la = --graph --pretty=format:'%C(red bold)%h%C(cyan)%d%Creset | %s %Cgreen(%ar)%C(blue)(%cr) %C(yellow)<%an>%C(red)<%cn>%Creset'
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = green
changed = red
untracked = cyan
[diff]
mnemonicprefix = true
[merge]
conflictstyle = diff3
[pull]
rebase = merges
[push]
default = simple
[fetch]
prune = true
[rerere]
enabled = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment