alias git='/usr/local/bin/git'
# for the installer pkg
alias git='/usr/local/Cellar/git/[0-9.]*/bin/git'
# for Homebrew
plugins(git)
git config --global init.defaultBranch main
git init -b main
If you are still using a version of Git prior to version 2.28.x Then you can still work with the changes in Github. Just create a new branch called main
and switch to that. The following command will create the main
branch and switch to it.
git checkout -b main
Then, if you want you can delete the master
branch.
git branch -d master