Git Default Branch Name
https://images.unsplash.com/photo-1522251519194-04481042f3e7If you easily want to have your main branch in a new git repository named something different than master
, git 2.28 has you covered with a new config option init.defaultBranch
. It doesn’t mess with existing repositories.