-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
102 lines (79 loc) · 2.17 KB
/
gitconfig
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[user]
name = Bill Wiens
email = [email protected]
signingkey = ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINovGAp85YjmUFjLZ+Iwxd3W+Aj7eu8caIHw9Y8GE6Cx
[github]
user = billputer
[core]
excludesfile = ~/.gitignore
autocrlf = input
editor = vim
pager = less -F -X
[color]
diff = auto
status = auto
branch = auto
interactive = auto
[merge]
summary = true
[push]
default = current
[help]
autocorrect = 1
[commit]
verbose = true
gpgsign = true
[alias]
aliases = config --get-regexp alias
st = status -s
ci = commit
co = checkout
br = branch
sg = diff --cached
staged = diff --cached
unstaged = diff
both = diff HEAD
out = log origin..HEAD
pushup = push --set-upstream origin
um = ! git fetch origin main:main && git checkout main
# remove double git
git = !git
# pretty logs
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
lol = log --graph --decorate --pretty=oneline --abbrev-commit
# log for particular file
flog = log -u
# show origin branch
dbranch = symbolic-ref refs/remotes/origin/HEAD
# show branches by latest changes
latest = for-each-ref --count=10 --sort=-committerdate --format='%(committerdate:short) %(refname:short)'
branches = branch --list
# show modified files in last commit
dl = "!git ll -1"
# diff last commit
dlc = diff --cached HEAD^
# find a file in codebase
f = "!git ls-files | grep -i"
# stash
stashes = stash list
# assume (for files changed locally)
assume = update-index --assume-unchanged
unassume = update-index --no-assume-unchanged
assumed = "!git ls-files -v | grep ^h | cut -c 3-"
wip = for-each-ref --sort='authordate:iso8601' --format=' %(color:green)%(authordate:relative)%09%(color:white)%(refname:short)' refs/heads
[include]
path = .gitconfig.local
[http]
postBuffer = 1048576000
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[pull]
ff = only
[gpg]
format = ssh
[gpg "ssh"]
program = /Applications/1Password.app/Contents/MacOS/op-ssh-sign