-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdot_gitconfig.tmpl
More file actions
44 lines (44 loc) · 1.18 KB
/
dot_gitconfig.tmpl
File metadata and controls
44 lines (44 loc) · 1.18 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
[user]
name = {{ .name }}
email = {{ .email }}
[color]
ui = true
[color "diff"]
new = green
old = red
[core]
editor = nvim
autocrlf = input
hooksPath = {{ .chezmoi.homeDir }}/.config/git/hooks
[init]
defaultBranch = main
[push]
default = current
[alias]
alias = !git config --get-regexp '^alias\\.' | sed 's/alias\\.\\([^ ]*\\) \\(.*\\)/\\1\\\t => \\2/' | sort
a = !git add -A && git status
au = !git add -u && git status
# AI-powered commit (Claude API - high quality)
aic = !git add -A && git-claude-commit
ai = !git-claude-commit
# Fast commit (pattern-based - instant)
aif = !git add -A && git-claude-commit-fast
aiff = !git-claude-commit-fast
cam = commit --amend
wip = commit -m 'wip'
co = checkout
cob = "!f() { git checkout -b "$1" && git branch; }; f"
cof = !git branch -a | fzf | xargs git checkout
mgf = !git branch -a | fzf | xargs git merge
cm = commit
st = status
br = branch
graph = log --graph --date=short --decorate=short --pretty=format:'%Cgreen%h %Creset%cd %Cblue%cn %Cred%d %Creset%s'
lg = log --oneline --decorate --graph --all
cancel = reset --soft HEAD^
[rerere]
enabled = true
[pull]
rebase = true
[fetch]
prune = true