-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitconfig
More file actions
105 lines (92 loc) · 2.32 KB
/
.gitconfig
File metadata and controls
105 lines (92 loc) · 2.32 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
# ABOUTME: Git configuration with delta pager, sensible defaults, and local overrides support
# Include user-specific config (not tracked in git)
# Copy .gitconfig.local.example to ~/.gitconfig.local and customize with your info
[include]
path = ~/.gitconfig.local
[alias]
aa = add --all
amend = commit --amend --no-edit
br = branch
ca = commit --amend
ch = checkout
cleanup = !git branch --merged | grep -v '\\*' | xargs -n 1 git branch -d
co = commit -v
cpn = cherry-pick -n
d = diff
fe = fetch
g = grep -n
# gpg = !~/.local/bin/git/git-gpg-tty-wrapper # Uncomment if using custom GPG wrapper
last = log -1 HEAD
lo = log --pretty=format:'%C(auto)%h %Cgreen(%cr)%Creset %s %C(bold blue)<%an>%Creset' --graph --abbrev-commit --decorate --color
pf = push --force-with-lease
plr = pull --rebase
pushu = "!f() { git push --set-upstream origin $(git symbolic-ref --short HEAD); }; f"
rb = rebase -i
rc = rebase --continue
st = status --short --branch
stash = stash -u
stashp = stash pop
stashshow = stash show -p
uncommit = reset --soft HEAD~1
wd = diff --word-diff
[core]
editor = nvim
pager = delta
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true
line-numbers = true
side-by-side = true
syntax-theme = gruvbox-dark
[color]
ui = true
[color "status"]
added = green
changed = yellow
untracked = cyan
deleted = red
[color "diff"]
meta = 11
frag = magenta bold
old = red bold
new = green bold
func = 146 bold
commit = yellow bold
whitespace = red reverse
[color "branch"]
current = yellow reverse
local = green
remote = red
[color "tag"]
tag = yellow
commit = green
[color "show"]
commit = yellow
diff = magenta
author = green
subject = white bold
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[init]
defaultBranch = master
[commit]
gpgsign = false
[merge "ours"]
driver = true
# GitHub CLI authentication (if using 'gh')
[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
# Fetch all GitHub PRs (useful for reviewing)
[remote "origin"]
fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
# Use SSH instead of HTTPS:
[url "git@github.com:"]
insteadOf = https://github.com/