-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
79 lines (76 loc) · 2.23 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
72
73
74
75
76
77
78
79
[advice]
statusHints = false # Slightly less verbose status output
[user]
email = dan.strokirk@gmail.com
name = Dan Strokirk
[github]
user = strokirk
[core]
pager = less -F -X
excludesFile = ~/.gitignore
[push]
default = upstream
[pull]
ff = only
[rebase]
updateRefs = true
[commit]
# Show diff in commit message editor
verbose = 1
[diff]
# Don't add a/b/ prefixes to diff - to make it easier to copy filename
noprefix = true
[hub]
protocol = ssh
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[alias]
amend = commit --amend --verbose
axe = log -p -G
branch-files = diff origin/master...HEAD --diff-filter=AMR --name-only
branch-name = rev-parse --abbrev-ref HEAD
conflict-files = diff --diff-filter=U --name-only
changed = diff HEAD --name-only --diff-filter=AMR
done = "!git fetch && git rebase origin/master"
edit-changed = "!$EDITOR $(git changed)"
publish = "!git push --set-upstream origin $(git branch-name)"
reset-upstream = reset --hard "@{upstream}"
sync = fetch origin master:master
back = "!git undo && git unstage"
undo = reset --soft HEAD^
unstage = reset HEAD
upstream = rev-parse --abbrev-ref --symbolic-full-name "@{upstream}"
finish = "!git-finish"
# List aliases
aliases = config --get-regexp '^alias'
branches = branch -v
tags = tag -l
s = status
d = diff
r = rebase
ds = diff --staged
ap = add --patch
co = checkout
cp = checkout --patch
up = reset HEAD --patch
pr = "!f() { git checkout $1 && git-rename-pr; }; f"
cc = commit -v
cm = commit -v -m
fix = commit --fixup
rup = "!git reset-upstream"
wip = "commit -a -m '[ci skip] WIP'"
rom = rebase -i --autosquash origin/master
prom = pull --rebase origin master
pwd = status -sb
sha = rev-parse --short
lgb = log master..HEAD
lgg = log --graph --pretty=oneline --abbrev-commit
lol = log --oneline --graph --decorate --all
lil = log --oneline --graph --decorate
lp = log --patch-with-stat
ls = log --pretty=format:\"%C(yellow)%h%Cred%d %Creset%s%Cblue [%cn]\" --decorate
[include]
path = ~/.gitconfig.local