-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_gitconfig
More file actions
63 lines (50 loc) · 1.42 KB
/
Copy pathdot_gitconfig
File metadata and controls
63 lines (50 loc) · 1.42 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
[user]
name = vemolista
email = tomas@tomasvemola.com
[core]
editor = hx
pager = delta
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true
dark = true
[merge]
conflictStyle = zdiff3
[init]
defaultBranch = main
[color]
ui = auto
[alias]
a = add
aa = add --all
ap = add --patch
b = branch --sort=-committerdate --format='%(align:20)%(committerdate:relative)%(end)%(refname:short)'
c = commit -m
ca = commit -am
cr = commit --reuse-message HEAD --amend
l = log --pretty=oneline -n 20 --graph --abbrev-commit
p = push
pf = push --force-with-lease
ll = log --pretty=oneline --graph --abbrev-commit
s = switch
sc = switch --create
st = status --short --branch
root = rev-parse --show-toplevel
contributors = shortlog --numbered --summary --email
delete-merged = "!git branch --merged | grep -v '\\*' | xargs git branch -d"
sweep = "!git fetch --prune && git checkout main && git pull && git branch -vv | awk '/: gone]/ {print $1}' | xargs -r git branch -D"
mark-stable = "!f() { git checkout main && git tag -f stable && git push origin stable --force; }; f"
dlog = -c diff.external=difft log --ext-diff
dshow = -c diff.external=difft show --ext-diff
ddiff = -c diff.external=difft diff
[push]
autoSetupRemote = true
default = current
[pull]
fast-forward = only
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true