-
Notifications
You must be signed in to change notification settings - Fork 7
/
gitconfig
52 lines (51 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
51
52
[core]
excludesfile = ~/.gitignore
pager = less -FRSX
[color]
status = auto
branch = auto
ui = auto
pager = 1
# [diff]
# external = git_diff_wrapper
# [pager]
# diff = true
[alias]
last = log -1 HEAD
co = checkout
st = status -s
stat = diff --stat
ci = commit
ca = commit -a
br = branch -a
logstat = log --stat
logf = log --pretty=fuller
logs = log --pretty=tformat:'%Cred%h %Creset%s %Cblue(%cr)'
unadd = reset --mixed
ls = ls-tree -rt --abbrev
di = diff --cached
ignore = !echo $1 >> .gitignore
amend = commit --amend
history = log --follow -p
com = commit
stageall = add -A
stage = add -u
unstage = reset HEAD --
unstageall = reset HEAD
rewindall = reset --hard HEAD
rewind = checkout
update = add -u
update-submodules = "!f(){ git pull --recurse-submodules; git submodule update; };f"
sba = "!f() { git subtree add --prefix $2 $1 master --squash; }; f"
sbu = "!f() { git subtree pull --prefix $2 $1 master --squash; }; f"
ls-subtrees = !"git log | grep git-subtree-dir | awk '{ print $2 }'"
[credential]
helper = cache --timeout=3600
[user]
name = Brian Carper
email = [email protected]
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true