-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
49 lines (43 loc) · 1.3 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
[user]
name = Dann
email = [email protected]
[alias]
ci = commit -a
co = checkout
cop = "!f() { git checkout $(git branch | peco); };`f`"
st = status
praise = blame
up = !git pull --rebase --prune $@ && git submodule update --init --recursive
amend = commit --amend
url = config --get remote.origin.url
edit-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; vim `f`"
add-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; git add `f`"
ranking = shortlog -s -n --no-merges
d1 = diff HEAD^
d2 = diff HEAD^^
d3 = diff HEAD^^^
d4 = diff HEAD^^^^
d5 = diff HEAD^^^^^
d10 = diff HEAD^^^^^^^^^^
tree = log --graph --pretty=oneline --abbrev-commit --decorate
bclean = "!f() { git branch --merged ${1-master} | grep -v " ${1-master}$" | xargs -r git branch -d; }; f"
bdone = "!f() { git checkout ${1-master} && git up && git bclean ${1-master}; }; f"
[color]
diff = auto
status = auto
branch = auto
[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
[core]
editor = /usr/bin/vim