forked from machupicchubeta/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
110 lines (110 loc) · 3.15 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
[alias]
acm = commit -am
ca = commit --amend
cm = commit -m
cfu = commit --fixup
c = commit
pl = pull
ps = push
psf = push --force-with-lease
pt = push --tags
ss = status -s
s = status
d = diff
df = diff --color --color-words --abbrev
dfc = diff --cached
pr = pull --rebase
prr = pull --rebase --prune
a = add
aa = add -A
b = branch
delete-branch = branch -D
ch = checkout
chb = checkout -b
crp = cherry-pick
fc = fetch
ft = fetch --tags
t = tag
rb = rebase
sh = show
changelog = "!f() { git tag | grep RELEASE | tail -n 1 | xargs -I{} git log {}...master --oneline | grep 'Merge pull request' | awk '{ print $1 }' | xargs git show; }; f;"
# lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
fhs = "!f() { git flow hotfix start `date +%Y%m%d%H%M_`$1; }; f"
ffs = "!f() { git flow feature start `date +%Y%m%d%H%M_`$1; }; f"
cb = "!f() { git checkout -b `date +%Y%m%d%H%M_`$1; }; f"
sweep = "!f() { git branch --no-color --merged | grep -v master | xargs -n 1 git branch -D; }; f"
merged = "!f() { git branch --no-color -r --merged | grep -v master | sed 's/origin\\///'; }; f"
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
lga = log --graph --all --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
l1 = log --oneline
g = grep
fixup = commit --amend -C HEAD
topic-branch = "!f() { git-topic-branch }; f"
backup = "!f() { git-backup }; f"
pull--request = browse-remote --pr
release-branch = !git checkout -b release_$(date +%Y%m%d_%H%M)
release-tag = !git tag RELEASE_$(date +%Y%m%d_%H%M)
[color]
ui = always
[apply]
whitespace = fix
[core]
pager = less
editor = vim
excludesfile = ~/.gitignore_global
attributesfile = ~/.gitattributes
whitespace = fix,space-before-tab,tab-in-indent,trailing-space
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[merge]
log = true
ff = false
[url "[email protected]:"]
insteadOf = "gh:"
pushInsteadOf = "github:"
pushInsteadOf = "git://github.com/"
[url "git://github.com/"]
insteadOf = "github:"
[url "[email protected]:"]
insteadOf = "gst:"
pushInsteadOf = "gist:"
pushInsteadOf = "git://gist.github.com/"
[url "git://gist.github.com/"]
insteadOf = "gist:"
[user]
name = machupicchubeta
email = [email protected]
[pull]
rebase = true
[push]
default = simple
[filter "media"]
required = true
clean = git media clean %f
smudge = git media smudge %f
[tig "bind"]
generic = g move-first-line
generic = G move-last-line
[rerere]
autoupdated = 1
enabled = 1
[rebase]
autosquash = true
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true
[pager]
diff = diff-so-fancy | less --tabs=2 -RFX
show = diff-so-fancy | less --tabs=2 -RFX