Suppose you want the default branch name created by git init (or tools that shell out to it, like cargo new) to be something other than master. In this example, I'll call it develop.
-
Add the following to your
.gitconfig:[init] templateDir = ~/.config/git/template/