forked from samnang/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
82 lines (82 loc) · 2.42 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
[user]
name = Samnang Chhun
email = [email protected]
[github]
user = samnang
[color]
ui = true
[alias]
aa = add -A
o = !gh browse
pv = !gh pr view --web
st = status -sb
ci = commit
pf = push --force-with-lease
amend = commit -a --amend
br = branch
bl = for-each-ref --count=30 --sort=-committerdate refs/heads/ --format='%(authordate:short) %(color:red)%(objectname:short) %(color:yellow)%(refname:short)%(color:reset) - %(contents:subject) - (%(color:green)%(committerdate:relative)%(color:reset))'
co = checkout
df = diff
dc = diff --cached
up = pull --rebase --prune
wip = !git add -A && git commit -m "WIP"
undo = reset HEAD~1 --mixed
bclean = "!f() { git branch --merged ${1-master} | grep -v " ${1-master}$" | xargs git branch -d; }; f"
bdone = "!f() { git checkout ${1-master} && git up && git bclean ${1-master}; }; f"
l = log --graph --decorate --pretty=oneline --abbrev-commit --date=relative --color -n 20
lg = log --graph --decorate --pretty=oneline --abbrev-commit --all --color
lga = log --all --graph --decorate --oneline --simplify-by-decoration
lgp = log -p
graph = log --graph --date-order -C -M --pretty=format:\"<%h> %ad [%an] %Cgreen%d%Creset %s\" --all --date=short
ls = ls-file
ctags = "!sh -c '[ -f .git/hooks/ctags ] || git init; .git/hooks/ctags'"
publish = "!git push -u origin \"$(git rev-parse --abbrev-ref HEAD)\""
unpublish = "!git push origin :\"$(git rev-parse --abbrev-ref HEAD)\""
[core]
excludesfile = ~/.gitignore_global
autocrlf = input
pager = delta
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true
line-numbers = true
dark = true
syntax-theme = TwoDark
plus-style = syntax "#184b54"
minus-style = syntax "#642f33"
[diff]
colorMoved = default
[merge]
tool = vimdiff
conflictstyle = diff3
[push]
default = simple
[heroku]
account = personal
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
required = true
process = git-lfs filter-process
[mergetool]
prompt = false
[rerere]
enabled = true
[commit]
template = ~/.gitmessage
[url "https://github.com"]
insteadOf = git://github.com
[credential]
helper = osxkeychain
helper = git-credential-manager
[init]
defaultBranch = main
[credential "https://github.com"]
helper =
helper = !gh auth git-credential
[credential "https://gist.github.com"]
helper =
helper = !gh auth git-credential
[credential "https://dev.azure.com"]
useHttpPath = true