cm0002@mander.xyz to Programmer Humor@programming.dev · 2 days agoWhen you have to checkout the master branchlemmy.worldimagemessage-square41fedilinkarrow-up1450arrow-down16
arrow-up1444arrow-down1imageWhen you have to checkout the master branchlemmy.worldcm0002@mander.xyz to Programmer Humor@programming.dev · 2 days agomessage-square41fedilink
minus-squaredohpaz42@lemmy.worldlinkfedilinkEnglisharrow-up8·2 days agoIf you haven’t already found it, you need to change your global git config (~/.gitconfig): git config --global init.defaultBranch main (or whatever you want to call it; e.g. daddy would work too) For any existing repositories you want to run the following command in the existing repository root (./.git/config): git config set init.defaultBranch main
If you haven’t already found it, you need to change your global git config (
~/.gitconfig):git config --global init.defaultBranch main(or whatever you want to call it; e.g.
daddywould work too)For any existing repositories you want to run the following command in the existing repository root (
./.git/config):git config set init.defaultBranch maindaddybranch.Love it.