-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
47 lines (47 loc) · 1.64 KB
/
Copy pathgitconfig
File metadata and controls
47 lines (47 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
[alias]
amend = commit --amend
br = branch
ci = commit
co = checkout
cp = cherry-pick
d = diff
lg = "log --color --graph --pretty=format:'%C(yellow)%h%Creset %s %Cgreen(%cr) %C(blue)%an%Creset%C(red)%d%Creset' --abbrev-commit"
lgiso = "log --color --graph --pretty=format:'%C(yellow)%h%Creset %s %Cgreen(%ci) %C(blue)%an%Creset%C(red)%d%Creset' --abbrev-commit"
st = status -sb
fp = fetch -p
# Requires column to be updated to a recent version to keep colors
# On MacOS, install the util-linux package for this
recent = "!r() { git for-each-ref --color=always --sort=-committerdate refs/heads/ --format='%(refname:short)|%(color:green)%(committerdate:relative)|%(color:magenta)%(authorname)%(color:reset)' | grep -vE '^(main|master|develop)\\|' | column --table --separator '|'; }; r"
rrecent = "!r() { git for-each-ref --color=always --sort=-committerdate refs/remotes/ --format='%(refname:short)|%(color:green)%(committerdate:relative)|%(color:magenta)%(authorname)%(color:reset)' | grep -vE '^(main|master|develop)\\|' | column --table --separator '|'; }; r"
pp = pull -p
sw = switch
wt = worktree
[user]
name = Pierre-Adrien Buisson
email = pabuisson@gmail.com
[core]
editor = nvim
excludesfile = /Users/pabuisson/.gitignore_global
pager = delta --keep-plus-minus-markers
[color]
ui = true
[log]
date = relative
[blame]
date = relative
markIgnoredLines = true
markUnblamableLines = true
[push]
default = simple
autoSetupRemote = true
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true
; light = true
[diff]
colorMoved = default
[rebase]
autoSquash = true
[branch]
sort = -committerdate