-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
47 lines (47 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
# cool powerups here: http://blog.apiaxle.com/post/handy-git-tips-to-stop-you-getting-fired
[user]
name = Christopher Fujino
email = [email protected]
[push]
default = simple
[alias]
a = add
amend = !git add -A && git commit --amend --reuse-message=HEAD
b = branch
c = commit -m
cm = !git add -A && git commit -m
co = checkout
co-pr = !sh -c 'git fetch upstream pull/$1/head:pr/$1 && git checkout pr/$1' -
d = diff
diff-with = !sh -c 'git diff $(git merge-base $1 HEAD) HEAD' -
fp = !sh -c 'git push --force-with-lease $1'
l = !git log --graph --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%cD%C(reset) %C(bold green)(%cr)%C(reset)%C(bold yellow)%d%C(reset)%n %C(white)%s%C(reset) %C(dim white)- %an%C(reset)'
h = !git log --graph --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%cD%C(reset) %C(bold green)(%cr)%C(reset)%C(bold yellow)%d%C(reset)%n %C(white)%s%C(reset) %C(dim white)- %an%C(reset)'
hub = !git push -u origin $(git symbolic-ref --short HEAD)
pl = pull --prune
prune-all = "!git remote | xargs git remote prune"
r = remote -v
s = status
t = tag
assume = update-index --assume-unchanged
unassume = update-index --no-assume-unchanged
assumed = "!git ls-files -v | grep ^h | cut -c 3-"
[core]
#pager = diff-so-fancy | less --tabs=4 -RFX
[diff]
algorithm = patience
[http]
cookiefile = "~/.gitcookies"
[color]
ui = auto
[pull]
ff = only
[url "[email protected]:"]
insteadOf = https://github.com/
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[mergetool "nvimdiff"]
layout = LOCAL,MERGED,REMOTE