Change from master to a new default branch git

With git 2.28 you can set a global config with this command
git config --global init.defaultBranch {branchName}

Replace {branchName} with the default branch name
and now whenever you create a new git repo, the default branch will be this.

More details in my video here: https://www.youtube.com/watch?v=YccHk6QlRss

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)