-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
94 lines (92 loc) · 2.62 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
[user]
name = Karol Czeryna
email = [email protected]
signingkey = EA4471E98C0F1E03BB1CDDA231D91F31DE7B040D
[alias]
a = add -p
s = show
st = status -s -b
d = diff
dc = diff --cached
c = commit
cm = commit -m
co = checkout
r = remote -v
t = tag -l
b = branch -v
nb = checkout -b
p = pull
pnf = pull --no-ff
pr = !git p --rebase
prnf = !git pnf --rebase
f = fetch
unstage = reset HEAD
uncommit = reset --soft HEAD^
last = diff HEAD^
lastc = diff HEAD^ --cached
recent = for-each-ref --sort=committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))'
l = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
ll = log --graph --decorate --oneline --stat --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --date=relative
undo = reset HEAD~1 --mixed
save = !git add -A && git commit -m 'SAVEPOINT'
wip = commit -am "WIP"
prune = fetch --prune
wipe = !git add -A && git commit -qm 'WIPE SAVEPOINT' && git reset HEAD~1 --hard
rank = shortlog -sn --no-merges
# Remove all merged branches
bdm = "!git branch --merged | grep -v '*' | xargs -n 1 git branch -d"
stunt = !git stash --include-untracked --keep-index
bb = !git for-each-ref --color --sort=-committerdate --format=$'%(color:red)%(ahead-behind:HEAD)\t%(color:blue)%(refname:short)\t%(color:yellow)%(committerdate:relative)\t%(color:default)%(describe)' refs/heads/ --no-merged | sed 's/ /\t/' | column -s=$'\t' -t -c 'Ahead,Behind,Branch Name,Last Commit,Description'
[color]
ui = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "status"]
added = yellow
changed = green
untracked = cyan
[core]
editor = nvim
excludesfile = ~/.gitignore_global
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
quotepath = false
commitGraph = true
[credential]
helper = osxkeychain
[pager]
difftool = true
diff = riff
show = riff
log = riff
[push]
default = current
followTags = true
[status]
showUntrackedFiles = all
[merge]
ff = only
[transfer]
fsckobjects = false
[commit]
verbose = true
gpgsign = true
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true
[fsck]
zeroPaddedFilemode = ignore
[gc]
writeCommitGraph = true
[receive]
advertisePushOptions = true
[interactive]
diffFilter = riff
[rerere]
enabled = true
[column]
ui = auto
[branch]
sort = -committerdate