-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
64 lines (64 loc) · 1.96 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
[user]
name = Sebastian Andil
email = sebastian.andil@gmail.com
[core]
excludesfile = /Users/selrond/.gitignore
pager = "diff-so-fancy | less --tabs=2 -+X"
[rebase]
autostash = true
[alias]
g = "git"
aliases = "!git config --get-regexp alias"
start = !git init && git commit -m 'Initial commit' --allow-empty
sup = "status --short --branch"
graph = "log --all --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(auto)%d%C(reset)%n''%C(white)%s%C(reset) %C(dim white)- %an%C(reset)'"
co = "checkout"
s = "switch"
# abbr of "new branch"
nb = "s -c"
fap = "fetch --all --prune"
cph = !echo \"[$(git log -1 --pretty=%B)]($(git rev-parse --short HEAD))\" | pbcopy
unstage = "reset --"
# sweep = !git branch --merged | egrep -v \"(^\\*|master|main|develop)\" | xargs git branch -d
sweep = "!f() { git branch --merged=main | egrep -Ev '^(\\*|\\s*(develop|main|master))$' | xargs git branch -d; }; f"
upload = push -u origin HEAD
cm = commit -vm
pfl = push --force-with-lease
wip = for-each-ref --sort='authordate:iso8601' --format=' %(color:green)%(authordate:relative)%09%(color:white)%(refname:short)' refs/heads
get = pull --all --prune
sub-get = submodule update --remote --merge
[color]
ui = auto
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[color "diff"]
meta = yellow
frag = magenta bold
commit = yellow bold
old = red bold
new = green bold
whitespace = red reverse
[pull]
rebase = true
[diff]
tool = vscode
[difftool "vscode"]
cmd = "code --wait --diff $LOCAL $REMOTE"
[merge]
tool = vscode
directoryRenames = true
conflictStyle = zdiff3
[mergetool "vscode"]
cmd = "code --wait --merge $REMOTE $LOCAL $BASE $MERGED"
[rerere]
enabled = 1
[init]
defaultBranch = main
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true