Table of Contents
Techniques for minimizing merge conflicts with collaborative git repos.
-
Python
-
Docker
The default branch name of repos should be main, or otherwise
not master.
The historical default branch name of master is not inclusive
to all communities and should be avoided. GitHub and GitLab use
main as the default branch for new repositories starting in 2020.
Git also provides a setting, since Git 2.28.0, to define the
default branch name when using git init.
Set default branch by CLI:
$ git config set --globalOr editing a gitconfig file:
[init]
defaultBranch = mainReferences: