Repository navigation
Expand file tree
/
Copy pathgitconfig
More file actions
128 lines (100 loc) · 3.61 KB
/
Copy pathgitconfig
File metadata and controls
128 lines (100 loc) · 3.61 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
117
118
119
120
121
122
123
124
125
126
127
128
[user]
name = Zvi Baratz
email = zvi.baratz@quantivly.com
signingkey = C17A560D62ECBDA8
# Machine-specific safe directories
[safe]
directory = /home/ubuntu/workspaces/test
directory = /home/ubuntu/workspaces/sre
directory = /home/ubuntu/workspaces/cicd
[credential "https://github.com"]
helper =
helper = !/usr/bin/gh auth git-credential
[credential "https://gist.github.com"]
helper =
helper = !/usr/bin/gh auth git-credential
[alias]
lg = lg1
lg1 = lg1-specific --all
lg2 = lg2-specific --all
lg3 = lg3-specific --all
lg1-specific = 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(auto)%d%C(reset)'
lg2-specific = 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(auto)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)'
lg3-specific = 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 cyan)(committed: %cD)%C(reset) %C(auto)%d%C(reset)%n'' %C(white)%s%C(reset)%n'' %C(dim white)- %an <%ae> %C(reset) %C(dim white)(committer: %cn <%ce>)%C(reset)'
conflicts = diff --name-only --diff-filter=U
[core]
editor = code --wait
preloadindex = true # Faster operations on large repos
hooksPath = ~/.config/git/hooks # Global hooks for all repositories
[fetch]
prune = true # Auto-prune on fetch
pruneTags = true # Prune tags as well
[diff]
tool = default-difftool
colorMoved = default
[difftool]
prompt = false
[difftool "default-difftool"]
cmd = code --wait --diff $LOCAL $REMOTE
[pager]
diff = delta
log = delta
reflog = delta
show = delta
[interactive]
diffFilter = delta --color-only
[delta]
features = line-numbers
syntax-theme = GitHub
plus-style = "syntax #22863a"
minus-style = "syntax #b31d28"
line-numbers = true
# Navigation keybindings (n/N) for large diffs
navigate = true
# Clickable links for commits, files, line numbers
hyperlinks = true
# De-emphasize unchanged lines for cleaner visual
zero-style = dim syntax
line-numbers-zero-style = dim
# Hunk header with syntax only (filename shown in decoration above)
hunk-header-style = syntax
# No decorative boxes around hunk headers
hunk-header-decoration-style = none
# Emphasize file name with bold and color
hunk-header-file-style = bold blue
# Subtle underline decoration for file names
file-decoration-style = blue ul
# Auto-detect side-by-side based on terminal width
# To force side-by-side: git diff --side-by-side
# To force unified: git diff --no-side-by-side
[init]
defaultBranch = main
[pull]
rebase = true
[push]
default = simple
followTags = true
autoSetupRemote = true # Set upstream on first push
[branch]
autosetupmerge = always
autosetuprebase = always
sort = -committerdate # Sort branches by recent activity
[rebase]
autosquash = true
updateRefs = true # Git 2.38+ - auto-update references
missingCommitsCheck = warn # Warn if commits are missing
[merge]
conflictstyle = diff3
[commit]
gpgsign = true
[gpg]
program = gpg
[hub]
protocol = ssh
[feature]
manyFiles = true # Optimize for repos with many files
[safe]
directory = /home/ubuntu/workspaces/test
directory = /home/ubuntu/workspaces/sre
directory = /home/ubuntu/workspaces/cicd
directory = /home/ubuntu/workspaces/test2