summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2020-07-10 02:25:40 +0000
committerbrian m. carlson <sandals@crustytoothpaste.net>2020-07-10 02:25:40 +0000
commit5dd6b359b6b32ddbb59496b9c5265b8c10a7054b (patch)
tree284e4cc53ecfa6864468e7f256319ae116b95235
parentdfee45205bcdb601bd15b3956e6ced4560c16d3c (diff)
git: name default branch "dev"
There has been much discussion lately about the term "master" for Git's default branch and its relationship to the problematic master/slave terminology used in tech. It's obvious in retrospect that the name is suboptimal and if we were making the decision today, we'd pick a different name. Since there's now an option, there's no reason not to make a better decision going forward. Choose the name "dev" for the default branch for several reasons: * It's short, easy to remember, and easy to type. * It reflects the purpose for my projects, which is the main development branch. * "Development" has a cognate in French and is not related in Spanish. "main", another popular choice, means something different and unrelated in French and will be confusing to some non-English speakers. * It's not the branch name used by another major workflow. "develop" would be confusing to people familiar with Git Flow. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
-rw-r--r--git/gitconfig2
1 files changed, 2 insertions, 0 deletions
diff --git a/git/gitconfig b/git/gitconfig
index fa07014..7dd9b83 100644
--- a/git/gitconfig
+++ b/git/gitconfig
@@ -101,6 +101,8 @@
reflogExpireUnreachable = "365 days"
[hub]
protocol = https
+[init]
+ defaultBranch = dev
[i18n]
commitEncoding = UTF-8
[lfs]