-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitconfig
More file actions
125 lines (116 loc) · 2.59 KB
/
.gitconfig
File metadata and controls
125 lines (116 loc) · 2.59 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
[alias]
# Basic shortcuts
a = add -A
cam = commit -a -m
ci = commit -v
cim = commit -m
co = checkout
cp = cherry-pick -x
d = diff --full-index
s = status
# Enhanced logging
l = log -c --no-merges --show-signature
lp = log -c -p --full-index --ignore-all-space --no-merges --show-signature
ls = log -c --no-merges --stat --show-signature
tree = log --all --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
recent = log --oneline --decorate -10
# Branch operations
b = branch
ba = branch -a
bd = branch -d
bD = branch -D
sw = switch
swc = switch -c
# Merge and rebase
me = merge
rb = rebase
rbi = rebase -i
# Remote operations
pl = pull
ps = push
psu = push -u origin HEAD
f = fetch --all --prune
# Diff improvements
dt = difftool
ds = diff --staged
dn = diff --name-only
# Stash operations
st = stash
stp = stash pop
stl = stash list
# Useful utilities
rtag = !git tag r`date \"+%Y-%m-%d-%H%M%S\"`
unstage = reset HEAD --
discard = checkout --
amend = commit --amend
fixup = commit --fixup
squash = commit --squash
# Find commits
find = log --pretty=\"format:%Cgreen%H %Cblue%s\" --name-status --grep
# Show what I did today
today = log --since=\"6am\" --oneline --author=\"Yonatan Feldman\"
[branch]
autoSetupMerge = always
autoSetupRebase = always
[color]
ui = auto
[commit]
gpgsign = true
[core]
attributesfile = ~/.gitattributes
autocrlf = input
editor = vim
excludesfile = ~/.gitignore_global
pager = less -R
precomposeunicode = true
quotepath = false
whitespace = trailing-space,space-before-tab,tab-in-indent
[credential]
# Use GitHub CLI's credential manager for secure authentication
# Setup with: gh auth setup-git
helper = cache --timeout=3600
[diff]
algorithm = histogram
colorMoved = default
tool = vimdiff
[fetch]
prune = true
[gpg]
format = ssh
[gpg "ssh"]
allowedSignersFile = ~/.ssh/allowed_signers
[help]
autocorrect = 1
[init]
defaultBranch = main
[log]
date = relative
[merge]
conflictstyle = diff3
tool = vimdiff
[pull]
rebase = true
[push]
default = current
[rebase]
autoSquash = true
autoStash = true
[rerere]
enabled = true
[status]
showUntrackedFiles = all
[user]
email = yon@milliped.com
name = Yonatan Feldman
signingkey = ~/.ssh/id_ecdsa_sk_rk.pub
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[credential "https://github.com"]
helper = !gh auth git-credential
[credential "https://gist.github.com"]
helper = !gh auth git-credential
[include]
path = ~/.gitconfig-local