sublimehq / sublime_merge

Issue tracker for Sublime Merge
https://www.sublimemerge.com
271 stars 14 forks source link

Consider renaming the default branch from `master` to `main` #1762

Closed RobertPaauw closed 1 year ago

RobertPaauw commented 1 year ago

Problem description

When making a first commit in a fresh repository (local or remote), this creates a branch named master.

Apparently Git in general (e.g. Git, Github, Atlasian, Gitlab) is moving toward (re)naming the master branch to main. For consistency, it would be nice if the initial branch in Sublime Merge would also be named main.

Not really a big deal, but I have multiple repositories, and the ones where I let the Git provider create the initial commit are now named differently (namely main) than the ones I created with Sublime Merge (which are called master).

Preferred solution

Name the default branch main instead of master.

Screenshots

sublime merge initial branch

jfcherng commented 1 year ago

Not sure whether SM respects git config --global init.defaultBranch main.

RobertPaauw commented 1 year ago

@jfcherng That solved it, thanks 😄 .