-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.gitconfig
44 lines (44 loc) · 1.38 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
[user]
name = Gianluca Fiore
email = [email protected]
signingkey = FEBBD5283FC9BB2AD80A2BB79DC39761CF95D79B
[color]
ui = true
branch = auto
diff = auto
interactive = auto
status = auto
grep = yes
[format]
signoff = true
[core]
excludesfile = /home/gianluca/.gitignore
mergeoptions = --no-edit
pager = more
[alias]
l = log --graph --decorate --no-merges --oneline
lp = log --graph --decorate --pretty=short -p --word-diff
discard = reset HEAD --hard lg = log --graph --pretty=format:'%Cred%h%Creset %C(yellow)%an%d%Creset %s %Cgreen(%cr)%Creset' --date=relative
graph = log --graph -10 --branches --remotes --tags --format=format:'%Cgreen%h %Creset°%<(75,trunc)%s (%cN, %cr) %Cred%d' --date-order
gofmt = !echo $(git diff --cached --name-only --diff-filter=ACM | grep .go) | xargs gofmt -w -l
recap = git log --all --oneline --no-merges [email protected]
pom = push origin master
[apply]
whitespace = fix
[diff]
renames = true
tool = vimdiff
[merge]
# show a third section in the middle with the common ancestor code
conflictstyle = diff3
[push]
default = simple
[pretty]
# http://stackoverflow.com/questions/7430093/git-log-formatting, slightly modified
vonc = format:%Cred%h%Creset%C(yellow)%d%Creset %s %C(bold green)(%cr) %C(bold blue)<%aN>%Creset
[credential]
helper = cache --timeout=3600
[init]
defaultBranch = master
[commit]
gpgsign = true