-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
46 lines (44 loc) · 1.24 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
# [include]
# path = .gitconfig-local
[user]
name = Ian Hattendorf
email = [email protected]
signingKey = 97923DF85C294A7AE4058B253A7EA46F568616DC
[tag]
forceSignAnnotated = true
[commit]
gpgSign = true
[gpg]
program = gpg
[core]
whitespace = trailing-space
autocrlf = input
excludesfile = ~/.gitignore
[alias]
a = !git add . && git status
au = !git add -u . && git status
aa = !git add . && git add -u . && git status
cm = commit -m
l = log --graph --all --pretty=format:'%C(yellow)%h%C(cyan)%d%Creset %s %C(white)- %C(yellow)(%ar) %Creset<%an>%Creset'
ucm = reset --soft HEAD~1
ll = log --stat --abbrev-commit
lg = log --graph --pretty=format:'%C(red)%h%C(reset) - %s - %C(yellow)(%ar)%C(reset) <%an>'
lt = ls-tree -r --abbrev=6 --full-tree HEAD
d = diff --color-words
dh = diff --color-words head
# Show the diff between the latest commit and the current state
dlc = "!git diff-index --quiet HEAD -- || clear; git diff --patch-with-stat"
st = status -sb
incoming = "!git remote update -p; git log ..@{u}"
outgoing = log @{u}..
[push]
default = simple
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[gc]
autoDetach = false
[init]
defaultBranch = main