-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
67 lines (50 loc) · 1.46 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
[user]
name = Kyle Graves
email = kyle@easypost.com
[core]
editor = vim
excludesfile = ~/.gitignore_global
[diff]
tool = vimdiff
[pull]
# rebase = false
# hint: git config pull.rebase false # merge (the default strategy)
# hint: git config pull.rebase true # rebase
# hint: git config pull.ff only # fast-forward only
[push]
default = simple
# git config --global push.default simple
[alias]
a = add
b = branch
c = commit
ca = commit --amend
co = checkout
cp = cherry-pick
d = diff
# remove local and remote branch
db = !sh -c 'git push origin :`whoami`/$0 && git br -d `whoami`/$0'
# delete merged branches
dmb = !sh -c 'git branch --merged | egrep -v \"(^\\*|master|dev)\" | xargs git branch -d' -
# delete tag
dt = !sh -c 'git tag -d "$0" && git push origin :refs/tags/$0'
l = log
# git log with graph
lol = log --graph --decorate --pretty=oneline --abbrev-commit
# new local branch and matching remote branch with your name prefixed
nb = !sh -c 'git push origin HEAD:`whoami`/$0 && git checkout -t origin/`whoami`/$0'
# new tag
nt = !sh -c 'git tag $0 -am \"$1\" && git push --tags origin'
pr = pull --rebase
sl = stash list
sp = stash pop
ss = stash save
st = status --short --branch
svnr = svn rebase
svnd = svn dcommit
# uncommit / undo commit
uc = reset --soft HEAD^
# unstage changes / undo stage
us = reset HEAD
[log]
excludeDecoration = refs/tags/phabricator/*