-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
61 lines (61 loc) · 2.55 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
[user]
name = Jacob Brouwer
email = jabrouwer82@gmail.com
[color]
ui = auto
[alias]
graph = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
graph2 = log --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(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
branchpurge = ! git fetch --all --prune && git branch -vv | grep \": gone]\" | awk '{ print $1 }' | xargs -n 1 git branch -D && git branch
catchup = ! git fetch --prune && git pull --no-edit origin $(git defaultname)
catchuppull = ! git fetch --prune && git pull --no-edit origin $(git defaultname)
catchuprebase = ! git fetch --prune && git pull --rebase=preserve --no-edit origin $(git defaultname)
currentname = ! git rev-parse --abbrev-ref HEAD 2> /dev/null | grep -v HEAD | sed 's/^/b\\//' || git describe --exact-match --all 2> /dev/null | sed 's/tags/t/' || git rev-parse HEAD
default = ! git checkout $(git defaultname) && git pull
defaultname = ! git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@'
delete = ! "f() { git branch -d \"$1\" && git push --delete origin \"$1\"; }; f"
deleteforce = ! "f() { git branch -D \"$1\" && git push --delete origin \"$1\"; }; f"
done = ! ~/.gitall.sh
forcecatchup = ! git checkout -f && git clean -fd && git catchup
repo = ! basename -s .git $(git config --get remote.origin.url)
[push]
default = upstream
autoSetupRemote = true
[init]
defaultBranch = main
#templatedir = /home/jabrouwer/personal/configurations/git-templates
[core]
whitespace = trailing-space,space-before-tab,tab-in-indent,cr-at-eol
hooksPath = /Users/ggn563/.config/torch/git-template/hooks
excludesFile = ~/.gitignore
[help]
autocorrect = 30
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[credential]
helper = store
[pager]
diff = delta
log = delta
reflog = delta
show = delta
[delta]
plus-style = "syntax #012800"
minus-style = "syntax #340001"
line-numbers = true
syntax-theme = jacob
navigate = true
side-by-side = true
[interactive]
diffFilter = delta --color-only
[diff]
colorMoved = default
[includeIf "gitdir:~/work/"]
path = ~/.work.gitconfig
[includeIf "hasconfig:remote.*.url:**/Travel-Syndication-Technology/**"]
path = ~/.work.gitconfig
[merge]
conflictstyle = diff3