-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitconfig
More file actions
57 lines (49 loc) · 2.39 KB
/
.gitconfig
File metadata and controls
57 lines (49 loc) · 2.39 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
# ── Identity Profiles Based on Repo Path ─────────────
[includeIf "gitdir:~/.neo/personal/"]
path = ~/.config/git/profiles/personal.gitconfig
# ── Core Git Behavior ────────────────────────────────
[core]
editor = nvim # Use Neovim for Git commits, rebase, etc.
excludesFile = ~/.config/git/.gitignore # Global .gitignore to avoid committing junk
autocrlf = input # Convert CRLF to LF on commit (safe for Unix)
safecrlf = true # Block accidental mixed/CRLF line endings
fileMode = false # Ignore file mode (permission) changes
whitespace = trailing-space,space-before-tab # Warn on whitespace issues
pager = delta # Use 'delta' for enhanced diff/merge view
abbrev = 12 # Use 12-char shortened commit hashes
# ── Init Defaults ────────────────────────────────────
[init]
defaultBranch = main
; templateDir = ~/.config/git-template
# ── Common Git Aliases ───────────────────────────────
[alias]
st = status
co = checkout
br = branch
ci = commit
lg = log --oneline --graph --decorate --all
last = log -1 HEAD
unstage = reset HEAD --
amend = commit --amend --no-edit
d = diff
dc = diff --cached
cp = cherry-pick
rb = rebase
pom = push origin main
# ── Merge Behavior ───────────────────────────────────
[merge]
tool = vimdiff
conflictstyle = diff3
# ── Diff Behavior ────────────────────────────────────
[diff]
tool = vimdiff
colorMoved = zebra
# ── Reuse Resolutions ────────────────────────────────
[rerere]
enabled = true
# ── Credential Storage ───────────────────────────────
[credential]
helper = store
# ── Push Behavior ────────────────────────────────────
[push]
default = current