-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
73 lines (61 loc) · 1.96 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
[user]
email = [email protected]
name = Christopher Grebs
[github]
user = EnTeQuAk
[core]
editor = vim
pager = cat
bare = true
[color]
ui = true
[color "branch"]
current = yellow reverse
local = yellow bold
remote = green bold
plain = red bold
[format]
pretty = medium
[alias]
st = status -sb
ci = commit
co = checkout
br = branch
di = diff
pu = pull
cp = cherry-pick
su = submodule update --recursive
cps = cherry-pick -s
today = diff @{yesterday}.. --stat
out = cherry -v
edit-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; subl `f`"
add-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; git add `f`"
record = ! sh -c '(git add -p -- $@ && git commit) || git reset' --
who = shortlog -s --
lg = log -p
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
ls = ls-files
lasttag = describe --tags --abbrev=0
branches = branch -vv
rup = !git remote update `git rev-parse --symbolic-full-name HEAD@{u}|cut -d/ -f3`
check = ! sh -c 'git checkout -b "$0" --track $(git branch -a | grep "$0" | tr -d "[:blank:]")'
merge = merge --log
commit = commit --verbose
report = "log --author='Christopher Grebs' --since='2 sunday ago' --until='1 sunday ago' --format='%Cgreen%ci%Creset %s%Creset' --no-merges"
lgg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
unpushed = log --branches --not --remotes --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
unp = log --branches --not --remotes --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
net = log --all --decorate --graph
[branch]
autosetupmerge = true
mergeoptions = --no-commit --no-ff
[push]
default = current
[core]
pager = less -R
[diff]
algorithm = patience
renamelimit=0
[merge]
renameLimit=0