-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
76 lines (76 loc) · 2.28 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
[user]
name = Tim Wade
email = hello@timjwade.com
signingkey = 19F4129A
[alias]
a = add
aa = !git add -u && git add . && git status
amend = commit --amend -C HEAD
ba = branch -a
br = branch
ca = commit -a
cb = checkout -b
ci = commit -v
cl = clone
cleanup = !git remote prune origin && git gc && git clean -dfx && git stash clear
cm = commit -m
co = checkout
cob = checkout -b
com = checkout master
compare = !xdg-open https://github.com/$(git origin-path)/compare/$(git lasttag)...master
cp = cherry-pick -x
ctags = !.git/hooks/ctags
dc = diff --cached
df = diff
dm = diff master
done = !git fetch && git rebase origin/master && git checkout master && git merge @{-1} --ff-only && git push
fo = fetch origin
gr = grep -n
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
ir = !git rebase -i origin/master
lasttag = !"$(git fetch origin &> /dev/null)" && git describe --abbrev=0 --tags origin/master
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
loc = !git diff --stat `git hash-object -t tree /dev/null` | tail -1 | cut -d' ' -f5
origin-path = !git remote get-url origin | cut --delimiter=: --fields=2 | sed 's/.git//'
pl = pull
ps = push
pp = !git pull && git push
praise = blame
psf = push --force
pu = !git fetch upstream && git merge upstream/master
rb = rebase
rba = rebase --abort
rbc = rebase --continue
ready = !git log $(git lasttag)..master --first-parent
readyfiles = !git diff --name-status $(git lasttag)..origin/master
rename = branch -m
rmb = !sh -c 'git branch -d $1 && git push --delete origin $1' -
rv = remote -v
s = status
st = status
su = submodule update --init --recursive
up = !git fetch origin && git rebase origin/master
whichtag = !sh -c 'git tag --contains $1 | head --lines=1' -
who = shortlog -n -s --no-merges
wip = !git add -A && git commit -m "wip"
[color]
ui = true
[commit]
template = ~/.gitmessage
gpgsign = true
[core]
excludesfile = ~/.gitignore
[diff]
compactionHeuristic = true
[push]
default = current
[merge]
ff = only
[branch]
autosetuprebase = always
[github]
user = imtayadeway
[include]
path = ~/.gitconfig.local
[gpg]
program = gpg2