-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathgitconfig
More file actions
41 lines (32 loc) · 992 Bytes
/
gitconfig
File metadata and controls
41 lines (32 loc) · 992 Bytes
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
[user]
name = Sam Livingston-Gray
email = geeksam@gmail.com
[branch]
autosetuprebase = always
sort=-committerdate
[core]
excludesfile = ~/.gitignore_global
attributesfile = /Users/sam/.gitattributes
[diff]
noprefix = true
[alias]
reword = commit --amend --only
fixup = commit --amend --no-edit
ff = merge --ff-only
mg = merge --no-ff
nop = commit --allow-empty
noop = commit --allow-empty
whoami = blame
##### Better `git diff` output (git calls this 'hunk headers' because lolgit)
# Swiped from: https://gist.github.com/tekin/12500956bd56784728e490d8cef9cb81
[diff "rspec"]
xfuncname = "^[ \t]*((RSpec|describe|context|it|before|after|around|feature|scenario)[ \t].*)$"
# Swiped from: https://gist.github.com/ruediger/5647207#gistcomment-2012538
[diff "ecmascript"]
xfuncname = "^((.*function.*)|([ \t]+it\\(.*))$"
[init]
defaultBranch = main
[url "git@github.com:"]
insteadOf = https://github.com/
[push]
autoSetupRemote = true