-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
64 lines (64 loc) · 1.6 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
[user]
name = Pan Thomakos
email = pan.thomakos@gmail.com
[includeIf "gitdir:~/src/github.com/InVisionApp/"]
path = ~/.gitconfig.invision
[alias]
unstage = reset HEAD --
co = checkout
br = branch
ob = rev-parse --abbrev-ref --symbolic-full-name @{u}
ci = commit
st = status
mote = remote -v
last = log -1
ba = branch -a
s = status -sb
splat = log --oneline --decorate
yank = pull --rebase
up = pull
l = log --graph --abbrev-commit --date=relative --pretty=format:\"%C(yellow)%h%Creset -%C(red)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset\"
r = !git --no-pager l -20
ra = !git r --all
di = diff
dc = diff --cached
cp = cherry-pick
vim = !vim .git/index
logs = log --show-signature
review = push origin HEAD:refs/for/master
sl = stash list
ss = stash save
sp = stash pop
sa = "!sh -c 'git stash apply stash@{$1}' -"
sx = "!sh -c 'git stash drop stash@{$1}' -"
ds = "!sh -c 'git stash show -p stash@{$1}' -"
rhm = reset --hard origin/master
rho = !git reset --hard `git ob`
tip = !git rev-list `git merge-base origin/master HEAD`..HEAD | tail -n1
fix = !git commit --fixup `git tip`
tags = tag -l
m = checkout master
ca = commit --amend
can = commit --amend --no-edit
cpy = !git rev-parse HEAD | tr -d '\n' | xclip -selection c
[core]
editor = nvim
whitespace = trailing-space
excludesfile = ~/.global.gitignore
quotepath = false
ignorecase = false
attributesfile = ~/.gitattributes
[color]
ui = true
[push]
default = upstream
[url "git@github.com:"]
insteadOf = https://github.com/
[rerere]
enabled = true
[diff]
compactionHeuristic = true
[pull]
ff = only
[fetch]
prune = true