cartridge-cli icon indicating copy to clipboard operation
cartridge-cli copied to clipboard

default git branch

Open vasiliy-t opened this issue 4 years ago • 0 comments

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:

  1. I have created a repo, cloned it and want to initialise cartridge project in repository root with cartridge create
  2. I have created a cartridge application with cartridge create and 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.

vasiliy-t avatar Nov 05 '21 10:11 vasiliy-t