Base theme is created either
/scripts/settings.json has no config/theme/baseTheme field or
there is no /scripts/settings.json present in your repository
In the latter case, a brand new settings.json file is created. Afterwards base theme is created depending on your workspace name.
In order to avoid this do not add settings.json to .gitignore of your repository.