-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitconfig
More file actions
129 lines (107 loc) · 3.18 KB
/
.gitconfig
File metadata and controls
129 lines (107 loc) · 3.18 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
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
[user]
name = Javier de Pedro López
email = javierdepedrolopez@gmail.com
# Taken from https://github.com/stoe/.dotfiles/blob/main/.gitconfig
# Local/private config goes in the include
[include]
path = ~/.gitconfig.local
[hub]
protocol = ssh
[protocol]
version = 2
[remote "origin"]
prune = true
[gpg]
program = /usr/local/bin/gpg
[gpg "x509"]
program = smimesign
[commit]
gpgsign = true
[tag]
forceSignAnnotated = true
[color]
diff = auto
status = auto
branch = auto
ui = auto
[color "branch"]
current = cyan reverse
local = yellow bold
remote = green bold
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = green bold
changed = yellow bold
untracked = cyan bold
[core]
# Use custom `.gitignore` and `.gitattributes`
excludesfile = ~/.gitignore
attributesfile = ~/.gitattributes
editor = code --wait
autocrlf = input
pager = ""
[apply]
whitespace = nowarn
[mergetool]
keepBackup = false
prompt = false
[help]
autocorrect = 1
[push]
# See `git help config` (search for push.default)
# for more information on different options of the below setting.
#
# Setting to git 2.0 default to surpress warning message
default = simple
[rebase]
autoStash = true
[alias]
# View abbreviated SHA, description, and history graph
l = log --oneline --decorate --graph --abbrev-commit --all --date=relative -n 10
lg = log --pretty=info --graph --all -n 10
lj = "!f() { git log --pretty=json; }; f"
# View the current working tree status using the short format w/ branch info
# upgrade your git if -sb breaks for you. it's fun.
s = status -sb
# Show verbose output about tags, branches or remotes
# tags = tag -l
tags = log --no-walk --tags --pretty=info --decorate=full
tag = tag -s
branches = branch -avv
remotes = remote -v
# http://haacked.com/archive/2014/07/28/github-flow-aliases/#completing-the-pull-request
up = pull --rebase --prune
co = checkout
cob = checkout -b
ec = config --global -e
# show who you are committing as
# https://gist.github.com/loranallensmith/0350db8a91578f40e471d322cf244d45
me = !git config --get user.name && git config --get user.email
idiff = difftool -t icdiff
# https://github.com/ahmadawais/Emoji-Log
new = "!f() { git commit -S -m \"📦 ${@:-Init}\"; }; f"
imp = "!f() { git commit -S -m \"🤘 $@\"; }; f"
wip = "!f() { git commit -S -m \"🚧 Work in Progress\"; }; f"
fix = "!f() { git commit -S -m \"🐛 $@\"; }; f"
rlz = "!f() { git commit -S -m \"🚀 $1\"; git tag \"$1\" -m \"$1\" -s; }; f"
brk = "!f() { git commit -S -m \"‼ $@\"; }; f"
doc = "!f() { git commit -S -m \"📖 $@\"; }; f"
tst = "!f() { git commit -S -m \"🤖 $@\"; }; f"
dep = "!f() { git commit -S -m \"🆙 ${@:-Update dependencies}\"; }; f"
typo = "!f() { git commit -S -m \"🔡 ${@:-Fix typo}\"; }; f"
# worktrees
wt = worktree
# https://stackoverflow.com/a/25387310
hide = update-index --assume-unchanged
unhide = update-index --no-assume-unchanged
[log]
showSignature = false
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true