forked from majnemer/davesdots
-
Notifications
You must be signed in to change notification settings - Fork 1
/
gitconfig
57 lines (53 loc) · 1.42 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
[user]
name = jtfairbank
email = [email protected]
[credential]
helper = osxkeychain
[alias]
ci = commit
co = checkout
di = diff --color-words
br = branch
move = mv
ren = mv
rename = mv
up = pull --rebase
update = pull --rebase
svnup = !git stash && git svn rebase && git stash apply
svnupdate = !git stash && git svn rebase && git stash apply
st = status
stat = status
del = rm
delete = rm
remove = rm
export = archive
ann = blame
praise = blame
cat = show
list = show
ls = show
type = cat-file -t
dump = cat-file -p
untrack-ignored = !git-untracked-ignored
info = !git-info
amend = commit --amend -C HEAD
tree = log --graph --pretty=oneline
hist = log --graph --pretty=format:'%C(cyan)%h%Creset -%C(yellow)%d%Creset %s %C(magenta)[%an]%Creset %Cgreen(%ad)%Creset' --date=relative
latest = log -n 5 --pretty=format:'%C(cyan)%h%Creset -%C(yellow)%d%Creset %s %C(magenta)[%an]%Creset %Cgreen(%ad)%Creset' --date=relative
rm-deleted = !git rm $(git ls-files --deleted)
# TODO: doesn't work for paths with a space :(
# REMINDERS
# --------------------------------------------------
# `git remote prune origin` - remove remote branches deleted through github
# `git push origin :<branch>` - delete a remote branch
vimdiff = difftool -y -t vimdiff
[color]
diff = auto
status = auto
branch = auto
[core]
pager =
excludesfile = ~/.gitignore
safecrlf = true
[push]
default = simple