microsoft / vscode-generator-code

Visual Studio Code extension generator
Other
1.3k stars 224 forks source link

Don't force initial Git branch name. Instead use the users default initial branch name. #432

Closed damienbutt closed 1 year ago

damienbutt commented 1 year ago

Hi,

Currently, if you opt to use Git, the extension will force the initial branch name to main, overriding any user's default initial branch name.

I think this is a little over-opinionated. The default initial branch name when you install Git is already main unless you specify to change it during the installation, so a simple git init would suffice there and would also work for people to choose to use a different default branch name like master and thus have that set in their global git config.

Thanks, D

aeschli commented 1 year ago

Make sense now that git uses main by default.