-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitconfig
74 lines (74 loc) · 2.41 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
[user]
name = nabinno
email = [email protected]
[core]
excludesfile = ~/.gitignore_global
[alias]
# export to $1 which is supposed to be a dirname (it does the same as copying repo and removing .git)
aliases = !git config --get-regexp 'alias.*' | colrm 1 6 | sed 's/[ ]/ = /'
ammend = commit --amend
a = add -v
b = branch
br = branch
branches = branch -a
brs = branch -a
cd = !bash -c 'while ! -d .git; do cd ..; done'
ci = commit -v
c = commit -a -v -m
ca = commit -a -v -m
co = checkout
d = rm
del = rm
delete-branch = !git branch -D
delete-remote-branch = "!sh -c \"git push origin --delete $1\""
df = diff HEAD^
dfc = diff --cached
export = "!sh -c 'git checkout-index -a -f --prefix=$1/' -"
hist = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
# hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
last-commit-diff = diff HEAD^
# last = 'cat-file commit HEAD'
last = diff HEAD~1..HEAD
lf = log --decorate=full --graph --pretty=full
l = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
pick = cherry-pick
pr = pull --rebase
search = "!sh -c 'git rev-list --all | grep ^$1 | while read commit; do git --no-pager log -n1 --pretty=format:\"%H %ci %an %s%n\" $commit; done' -"
slog = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
s = status -sb
st = status -sb
switch = checkout
vlog = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen - %cD (%cr) %C(bold blue)<%an>%Creset%n' --abbrev-commit --date=relative -p
who = shortlog -s --
[color]
branch = auto
diff = auto
interactive = auto
status = auto
ui = true
blame = 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
[apply]
whitespace = nowarn
[branch]
autosetuprebase = always
autosetupmerge = always
[push]
default = simple
[url "[email protected]:"]
insteadOf = https://github.com/
[ghq]
root = ~/.ghq.d/src