caprover / caprover-cli

Command Line Interface for https://github.com/caprover/caprover
72 stars 39 forks source link

Change deafult branch from master to main #99

Closed pcantaluppi closed 3 years ago

pcantaluppi commented 3 years ago

Easier do deploy newly creates git repos.

githubsaturn commented 3 years ago

It's only github that has changed the default branch to main. Majority of existing repos are still using master. If you want, we can add an optional override for the default value. Something like:

default: params && (process.env.CAPROVER_DEFAULT_BRANCH || 'master'),
pcantaluppi commented 3 years ago

That would be very nice, thank you.

Btw. I’m using gitlab

githubsaturn commented 3 years ago

Sounds good! Feel free to update your PR and we'll get it merged.