cartridge-cli
cartridge-cli copied to clipboard
default git branch
cartridge create creates project layout and also initialises git repository with default branch set to master. Github allows to create repositories via webui and also allows to set some defaults e.g. create README, choose a license etc.
I see two possible scenarios:
- I have created a repo, cloned it and want to initialise cartridge project in repository root with
cartridge create - I have created a cartridge application with
cartridge createand want to set remote to newly created github repo.
First option is not possible because cartridge create does not allows to create project in current directory, only in subdir and then I must move files manually.
Second option forces me to do rebase of different git histories (master from project and main from github).
Any way - there are additional steps to be able to push repo contents to github.