-
Notifications
You must be signed in to change notification settings - Fork 10
/
.gitconfig
40 lines (40 loc) · 1.1 KB
/
.gitconfig
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
[user]
# for anonymous commits
# name = secret
# email = [email protected]
# username = secret
name = Myles Borins
email = [email protected]
username = mylesborins
# signingkey = 0B5CA946
[github]
user = mylesborins
[color]
diff = true
ui = auto
[core]
excludesfile = ~/.gitignore_global
# editor = code -w
[alias]
co = checkout
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit
plus = commit -a --amend --no-edit
assume = update-index --assume-unchanged
unassume = update-index --no-assume-unchanged
assumed = "!git ls-files -v | grep ^h | cut -c 3-"
xcode = !git add *.xcodeproj && git commit *.xcodeproj -m 'Fuck you xcode'
patchit = "!f() { curl -L $1.patch | git am; }; f"
patchit-please = "!f() { curl -L $1.patch | git am -3; }; f"
head = "!git rev-parse HEAD | cut -b -10"
mcfly = reset --hard HEAD~1
fixup = commit --fixup HEAD`
[credential]
# helper = osxkeychain
[push]
default = simple
[help]
autocorrect = 1
[commit]
# gpgsign = true
[init]
defaultBranch = main