-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
112 lines (112 loc) · 3.12 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
[include]
path = ~/.private_gitconfig # Requires at least v1.7.10.2
[core]
autocrlf = false
pager = delta
ui = true
excludesfile = .gitignore_global
[color.diff-highlight]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[color.diff]
meta = yellow
frag = cyan
func = yellow bold
commit = magenta bold
old = red bold
new = green bold
whitespace = red reverse
[interactive]
diffFilter = delta --color-only
[diff]
colorMoved = default
[delta]
navigate = true
[merge]
conflictstyle = diff3
tool = nvimdiff3
[color.interactive]
prompt = cyan
[push]
default = simple
[pull]
ff = only
[alias]
s = switch -
l = log -1
lp = log -p
alias = config --get-regexp "^alias\\."
ap = add --patch
au = add -u
b = !fish -c git_fzf_branches
ba = branch -a
br = branch
bs = !git br --list -vv $(git br --show-current)
browse = !nvim --headless -c 'GBrowse | quit' > /dev/null 2>&1
cf = !git show --pretty="format:" --name-status
cm = commit -m
cnv = commit --no-verify -m
co = checkout
cb = checkout -b
count = rev-list --count HEAD
cp = checkout --patch
ct = commit
cv = !env GIT_EDITOR='nvim -c \"vert Git --paginate diff --cached | wincmd h | nmap q :qa<cr>\"' git commit
cr=log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
d = diff
dc = diff --cached
dl = !git diff --color=always $@ | less -r
filelog = log --name-status --oneline
fp = fetch --prune
lp = log -1 -p
getfile = !git archive --remote=~$1 HEAD:~$2 ~$3 | tar -x
graph = !git log --graph --color --abbrev-commit --decorate --date=relative
issue = "!__git_issue_2945() { git branch -a | grep --color=always "issue-$1"; }; __git_issue_2945"
m = checkout master
main = master
md = log origin/master...HEAD
mergetest = !git merge-tree `git merge-base $1 $2` $1 $2 | diff-so-fancy
mt = "!nvim -c DiffviewOpen"
mp = !git checkout master && git pull
p = pull
pr = '!f() { git fetch ${2:-upstream}refs/pull/$1/head:pr/$1 && git checkout pr/$1; }; f'
pt = stash push -m "temp"
puo = push -u origin HEAD
rcount = rev-list --count @{u}
rp = reset --patch
rv = remote -v
sa = stash apply
sb = status -sb
sd = stash drop
sl = stash list
sp = stash push
spp = stash push --patch
ss = stash show
tags = show-ref --tags --dereference
tracked = ls-files
summary = log --oneline --decorate
unstage = reset --quiet HEAD --
update = clone https://www.github.com/git/git
upstream = !git rev-parse --abbrev-ref $1@{upstream}
w = worktree
wl = worktree list
wa = worktree add
wr = worktree remove
wd = diff --word-diff
wdc = diff --word-diff --cached
[web]
browser = google-chrome
[init]
defaultBranch = master
[credential]
helper = osxkeychain
[help]
autocorrect = 1
[rerere]
enabled = true
[branch]
sort = -committerdate
[column]
ui = auto