forked from vitorleal/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
66 lines (53 loc) · 1.78 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
[alias]
# View the SHA, description, and history graph of the latest 20 commits
l = log --pretty=oneline -n 20 --graph
lg = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
# View the current working tree status using the short format
s = status -sb
# Show the diff between the latest commit and the currentt state
d = !"git diff-index --quiet HEAD -- || clear; git diff --patch-with-stat"
# Show verbose output about tags, branches or remotes
tags = tag -l
branches = branch -a
remotes = remote -v
lastWeek = !"git log --all --author=$(whoami) --pretty=format:'%h %cd %s (%an)' --since='7 days ago'"
lastMonth = !"git log --all --author=$(whoami) --pretty=format:'%h %cd %s (%an)' --since='30 days ago'"
[apply]
# Detect whitespace errors when applying a patch
whitespace = fix
[core]
excludesfile = ~/.gitignore
pager = /usr/local/share/git-core/contrib/diff-highlight/diff-highlight | less
[color] # Use colors in Git commands that are capable of colored output
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
commit = green
meta = yellow
frag = cyan
old = red bold
new = green bold
whitespace = red reverse
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[color "status"]
added = yellow
changed = green
untracked = cyan
[merge] # Include summaries of merged commits in newly created merge commit messages
log = true
tool = vimdiff
[push]
default = simple
[credential]
helper = osxkeychain
[difftool]
prompt = false
[mergetool]
prompt = false