Skip to content

Commit edea61c

Browse files
authored
.gitconfig: make git init default to main instead of master (mathiasbynens#926)
Reference: https://stackoverflow.com/a/50880622/96656
1 parent d600133 commit edea61c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.config/git/template/HEAD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ref: refs/heads/main

.gitconfig

+4
Original file line numberDiff line numberDiff line change
@@ -188,3 +188,7 @@
188188
[url "git://gist.github.com/"]
189189
190190
insteadOf = "gist:"
191+
192+
[init]
193+
194+
templateDir = ~/.config/git/template/

0 commit comments

Comments
 (0)