forked from Donearm/configs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
37 lines (37 loc) · 1.18 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
[user]
name = Gianluca Fiore
email = [email protected]
[color]
ui = true
branch = auto
diff = auto
interactive = auto
status = auto
grep = yes
[format]
signoff = true
[core]
excludesfile = /home/gianluca/.gitignore
[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]
[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