-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
66 lines (54 loc) · 1.62 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
# .gitconfig
[user]
name = Eli
email = [email protected]
[core]
editor = code --wait
excludesfile = ~/.gitignore_global
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore_global
[color]
ui = auto
[commit]
template = ~/.gitcommit_template
[diff]
colorMoved = default
[merge]
conflictstyle = diff3
[rebase]
autosquash = true
[pull]
rebase = true
[push]
default = current
[alias]
s = stash
pop = stash pop
save = stash save
st = status -sb
ci = commit
br = branch
co = checkout
df = diff
dc = diff --cached
grmc = rm -r --cached .
ls = log --oneline --graph --decorate
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
unstage = reset HEAD --
last = log -1 HEAD
visual = !gitk
staged = diff --cached
unstaged = diff
current-branch = rev-parse --abbrev-ref HEAD
branch-name = "!git rev-parse --abbrev-ref HEAD | tr -d '\n'"
publish = "!git push -u origin $(git branch-name)"
unpublish = "!git push origin :$(git branch-name)"
rewrite-author = "!f() { git filter-branch --env-filter 'if [ \"$GIT_AUTHOR_EMAIL\" = \"[email protected]\" ]; then GIT_AUTHOR_EMAIL=\"[email protected]\"; GIT_AUTHOR_NAME=\"New Name\"; fi; export GIT_AUTHOR_EMAIL GIT_AUTHOR_NAME' -- --all; }; f"
[delta]
plus-style = "syntax #012800"
minus-style = "syntax #340001"
syntax-theme = Monokai Extended
navigate = true
line-numbers = true
[interactive]
diffFilter = delta --color-only