-
Notifications
You must be signed in to change notification settings - Fork 4
/
gitconfig
53 lines (53 loc) · 1.43 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
[core]
excludesfile = ~/.gitignore_global
pager = less -FXRS -x2
commitGraph = true
whitespace = space-before-tab indent-with-non-tab tab-in-indent trailing-space
[alias]
st = status
di = diff
co = checkout
ci = commit
br = branch
lg = log --graph
lup = log @{u}... --left-right --graph
lum = log origin/main... --left-right --graph
mup = merge @{u}
rum = rebase origin/main
age = !"for branch in `git branch -r | awk '{print $1}'`; do echo `git log -1 $branch --pretty=format:"%at:%%$branch%%%cr%%%cn%n"`;done | column -t -s'%' | sort -nr | cut -d ':' -f 2"
rollback = !"git diff origin/main.. --name-only -- db/migrate | sed 's/db\\/migrate\\///g' | sort -r | xargs -I% rake db:migrate:down VERSION=%"
w = whatchanged
lall = log --branches --tags --remotes --graph
srp = !"git stash save -u 'wip' && rake && git push && git stash pop"
[apply]
whitespace = nowarn
[color]
branch = auto
diff = auto
interactive = auto
status = auto
ui = auto
[color "status"]
added = yellow
changed = green
untracked = cyan
[branch]
autosetupmerge = true
[push]
default = tracking
[rebase]
autosquash = true
[format]
pretty = format:"%C(yellow)%<(12)%cd%Creset %<(50)%s | %C(auto)%h%Creset%C(auto)%d%Creset | %Cgreen%an%Creset"
[log]
date = format:%Y-%m-%d %H:%M
[merge]
ff = only
[remote "origin"]
prune = true
[include]
path = /Users/dev/.git-together
[pull]
ff = only
[checkout]
defaultRemote = origin