foriequal0 / git-trim

Automatically trims your branches whose tracking remote refs are merged or stray
MIT License
490 stars 14 forks source link

Switch default branch name from `master` to `main` #208

Open joshka opened 6 months ago

joshka commented 6 months ago

Github has been using main as the default branch name for a while now. This change updates the branch name in the codebase and the tests so they work with the default branch name set to main.

To make this change locally, you can run the following commands:

git config --global init.defaultBranch main

I'd suggest also updating the branch name for this repository to main as well and updating the github workflows.