Repository navigation
Expand file tree
/
Copy path.gitconfig
More file actions
116 lines (98 loc) · 3.24 KB
/
Copy path.gitconfig
File metadata and controls
116 lines (98 loc) · 3.24 KB
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
113
114
115
116
[user]
name = Marek Elmayan
email = melmayan.dev@gmail.com
useConfigOnly = true
signingkey = 75409EE6172B181C464EF7483DCE3657F85BF96C
[init]
defaultBranch = main
# Never create merge commits on pull; keep history linear
[pull]
rebase = true
ff = only
autoStash = true
[rebase]
autosquash = true
updateRefs = true
autostash = true
[rerere]
enabled = true
# Safer pushes and better tag behavior
[push]
default = current
autoSetupRemote = true
followTags = true
autoSetupRemote = true
[fetch]
prune = true
pruneTags = true
recurseSubmodules = on-demand
# Helpful diffs & merges
[diff]
algorithm = histogram
colorMoved = default
renames = true
[merge]
conflictStyle = zdiff3
# Colors & status
[color]
ui = auto
[status]
submoduleSummary = true
showUntrackedFiles = all
# Your editor & line endings (pick ONE of the core blocks below for your OS)
[core]
editor = code --wait
excludesfile = ~/.gitignore_global
safecrlf = warn
# macOS/Linux:
autocrlf = input
pager = delta
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true # use n and N to move between diff sections
dark = true # or light = true, or omit for auto-detection
# Quality-of-life
[tag]
sort = version:refname
[gc]
writeCommitGraph = true
pruneExpire = 30.days
[help]
autocorrect = 10
[alias]
autofixup = "!f() { \
SELECTED=$(git log --date=relative --decorate --color=always \
--pretty=format:'%C(yellow)%h %C(blue)%ad%C(reset) %C(green)%an%C(reset) %C(red)%d%C(reset) %s' \
| fzf --ansi --height=80% --reverse --border --margin=1 --padding=1 \
--prompt='fixup > ' --header='Select a commit (ENTER to proceed)' \
--info=inline --pointer='▶' --marker='✓'); \
[ -z \"$SELECTED\" ] && return; \
COMMIT_HASH=$(echo \"$SELECTED\" | sed -E 's/\\x1b\\[[0-9;]*m//g' | awk '{print $1}'); \
git commit --fixup $COMMIT_HASH; \
GIT_SEQUENCE_EDITOR=: git rebase --autostash --autosquash -i $COMMIT_HASH^; \
}; f"
autofixup-no-verif = "!f() { \
SELECTED=$(git log --date=relative --decorate --color=always \
--pretty=format:'%C(yellow)%h %C(blue)%ad%C(reset) %C(green)%an%C(reset) %C(red)%d%C(reset) %s' \
| fzf --ansi --height=80% --reverse --border --margin=1 --padding=1 \
--prompt='fixup > ' --header='Select a commit (ENTER to proceed)' \
--info=inline --pointer='▶' --marker='✓'); \
[ -z \"$SELECTED\" ] && return; \
COMMIT_HASH=$(echo \"$SELECTED\" | sed -E 's/\\x1b\\[[0-9;]*m//g' | awk '{print $1}'); \
git commit --fixup $COMMIT_HASH --no-verify; \
GIT_SEQUENCE_EDITOR=: git rebase --autostash --autosquash -i $COMMIT_HASH^; \
}; f"
newfeat = "!f() { git fetch origin && git checkout -b \"$1\" origin/main; }; f"
sync = !git fetch origin && git rebase origin/main
[coderabbit]
machineId = cli/2fd2e9a0e2824636b56cdb3d65279175
[commit]
gpgsign = true
[gpg]
program = gpg
[includeIf "gitdir:~/Dev/Theodo/hublo/"]
path = ~/.gitconfig-hublo
[trace2]
eventTarget = af_unix:stream:/Users/mareke/.git-ai/internal/daemon/trace2.sock
eventNesting = 0