-
Notifications
You must be signed in to change notification settings - Fork 1
/
gitconfig
51 lines (51 loc) · 1.66 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
[user]
name = Chris Tozer
email = [email protected]
[core]
excludesfile = ~/.gitignore
editor = vim
pager = less -FRSX
[alias]
st = status
co = checkout
cop = !git checkout $1 && git pull && true
c- = checkout --
br = !~/path/br
ci = commit
cm = commit -m
ca = commit -a
cam = commit -a -m
current = rev-parse --abbrev-ref HEAD
fo = fetch origin
pp = !CURRENT=$(git current) && git push -u ${1:-origin} $CURRENT && true
amend = commit --amend
l = log --graph --abbrev-commit --all --date=local --pretty=format:'%C(white)%h%Creset -%C(auto)%d%Creset %<|(100,trunc)%s %C(yellow bold)<%an>%Creset %ad'
ll = log --graph --pretty=full --all --decorate=full --stat
lol = log --graph --oneline --all --decorate --date-order
note = branch --edit-description
ds = diff --stat
info = status --porcelain -b
findrev = svn log --date=local --show-commit -r
yolo = !git commit -m \"[yolo] $(curl -s whatthecommit.com/index.txt)\"
mr = !sh -c 'git fetch $1 merge-requests/$2/head:mr-$1-$2 && git checkout mr-$1-$2' -
[color]
ui = true
[color "diff"]
old = red bold
new = green bold
meta = white reverse
[color "status"]
added = green bold
changed = red bold
untracked = magenta bold
branch = bold
nobranch = red bold
[color "branch"]
current = green
remote = red bold
[color "interactive"]
prompt = yellow bold
help = white
[push]
default = simple
followTags = true