-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
71 lines (70 loc) · 1.88 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
[include]
path = ~/.gitconfig.local
[alias]
a = add
aa = add --all
amend = commit --amend
br = branch
ca = commit --amend
cl = clone
co = checkout
cod = !git clone --depth 1
cm = commit -m
dm = !git branch --merged origin/master | grep -v master | xargs git branch -d
done = !git fetch && git rebase origin/master && git checkout master && git merge @{-1} --no-ff && git push
fa = fetch --all
iquit = !git reset --hard && git clean -fd
ir = !git rebase -i origin/master
l = log --graph --abbrev-commit --date=relative
loc = !git diff --stat `git hash-object -t tree /dev/null` | tail -1 | cut -d' ' -f5
lst = log --graph --abbrev-commit --date=relative --stat
pr = pull -r
pf = push --force-with-lease
rom = !git fetch origin && git rebase origin/master
sa = !git submodule add
shove = !git remote | xargs -L 1 git push
st = status
wip = !git aa && git cm 'wip' && git push
[format]
pretty=format:%C(yellow)%h%Creset -%C(red)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an %ae>%Creset
[commit]
template = ~/.gitmessage
[core]
editor = vim
excludesfiles = ~/.gitignore
[color]
ui = true
[push]
default = current
[pull]
default = current
rebase = true
[user]
name = twatts
email = [email protected]
[alias]
co = checkout
st = status
ci = commit
br = branch
df = diff
lg = log -p
ss = !git remote show origin && git status
[core]
editor = vim
excludesfile = ~/.dotfiles/.gitignore
[color]
ui = true
[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