-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
98 lines (76 loc) · 2.09 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
[user]
name = Peter Lehwess
email = -
[apply]
whitespace = nowarn
[alias]
co = checkout
cob = checkout -b
br = branch
bra = branch -a
st = status
s = status -s -b
pt = push -u origin head
pu = push origin head
pf = push -f --force-with-lease
blame = blame -w
credit = commit --amend --author "$1 <$2>" -C HEAD
ci = commit --verbose
ca = commit --verbose --all
cia = commit --verbose --amend
df = diff --word-diff
ds = diff --stat
dc = diff --cached
changes = diff --name-status -r
aa = add --all
ap = add --patch
wc = whatchanged -p --abbrev-commit --pretty=medium
l = log --pretty=oneline --abbrev-commit
ll = log --pretty=oneline --abbrev-commit --max-count=25
la = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
lp = log -p
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
# Experimental stuff
append = commit --amend
undo = reset --soft HEAD^1
pop = reset --soft HEAD^1
poph = reset --hard HEAD^1
review = log -p --max-count=1
unstage = reset HEAD
# Fancy logging.
# h = head
# hp = head with patch
# r = recent commits, only current branch
# ra = recent commits, all reachable refs
# l = all commits, only current branch
# la = all commits, all reachable refs
head = !git l -1
h = !git head
hp = "!source ~/.githelpers_gb && show_git_head"
r = !git l -30
ra = !git r --all
# l = "!source ~/.githelpers_gb && pretty_git_log"
# la = !git l --all
# Interactive rebase with the given number of latest commits
reb = "!r() { git rebase -i HEAD~$1; }; r"
# Amend the currently staged files to the latest commit
amend = commit --amend --reuse-message=HEAD
[diff]
renames = true
[color]
sh = auto
status = auto
branch = auto
diff = auto
[github]
user = leewaa
[core]
quotepath = false
[mergetool]
keepBackup = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[push]
default = simple