-
Notifications
You must be signed in to change notification settings - Fork 2
/
gitconfig
50 lines (42 loc) · 1.23 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
[user]
name = Tyler Wilcock
email = [email protected]
[core]
autocrlf = input
trustctime = false
excludesfile = ~/.dotfiles/.gitignore_global
editor = nvim
[color]
ui = true
[push]
default = upstream
[branch]
autosetuprebase = always
[alias]
# http://durdn.com/blog/2012/11/22/must-have-git-aliases-advanced-examples/
st = status
ci = commit
br = branch
co = checkout
logd = log --patch-with-stat
logg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
diverges = !sh -c 'git rev-list --boundary $1...$2 | grep ^- | cut -c2-'
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
lds = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short
filelog = log -u
fl = log -u
dl = "!git ll -1"
dlc = diff --cached HEAD^
f = "!git ls-files | grep -i"
grep = grep -Ii
alias = "!git config -l | grep alias | cut -c 7-"
# Switch to a branch, creating it if necessary.
go = "!f() { git checkout -b \"$1\" 2> /dev/null || git checkout \"$1\"; }; f"
[pull]
rebase = merges
[diff]
tool = meld
[difftool]
prompt = false
[difftool "meld"]
cmd = meld "$LOCAL" "$REMOTE"