forked from basti/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
40 lines (32 loc) · 867 Bytes
/
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
[include]
path = .gitconfig.local
[mergetool]
keepBackup = true
[alias]
# I'm lazy, so two letters will always trump the full command
co = checkout
ci = commit
cp = cherry-pick
st = status
br = branch
df = diff
lg = log -p
logm = log --pretty=medium
# The first thing I run on a new project. Who has done the most damage
who = shortlog -s --
# random stuff cargoculted from who knows where
lol = log --pretty=oneline --abbrev-commit --graph --decorate
alias = !git config --list | grep 'alias\\.' | sed 's/alias\\.\\([^=]*\\)=\\(.*\\)/\\1 => \\2/' | sort
tree = log --oneline --decorate --all --decorate --graph
[color]
diff = auto
status = auto
branch = auto
ui = auto
[core]
excludesfile = ~/.gitignore
editor = vim
[format]
pretty = %C(yellow)%h%Creset %s %C(red)(%an, %cr)%Creset
[push]
default = simple