You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm getting this error that is caused that I use useconfigonly = true settings in git. Can you create app without create repo or have option to pass user credentials as parameters?
$ encore app create my-app
? Select app template: Hello World
Downloaded template hello-world.
error: create initial commit repository: Author identity unknown
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: no email was given and auto-detection is disabled
(exit status 128)
The text was updated successfully, but these errors were encountered:
Hey, thanks for reporting! We should definitely support this use case. To help you quickly work around it, could you see if it works by setting GIT_AUTHOR_NAME and GIT_AUTHOR_EMAIL and then running encore app create?
export GIT_AUTHOR_NAME="Your Name"export GIT_AUTHOR_EMAIL="you@example.com"
encore app create
If that doesn't work there are a few other workarounds but this is probably the easiest.
Thanks @abtris. I think the best way to solve this is by checking git config --list and scanning for user.email and user.name before creating a commit.
The question is what to do if this hasn't been configured? We could either prompt the user to specify it before proceeding, or we could set some reasonable defaults (Encore Bot <git-bot@encore.dev> or something). What do you think?
Hi,
I'm getting this error that is caused that I use
useconfigonly = true
settings in git. Can you create app without create repo or have option to pass user credentials as parameters?The text was updated successfully, but these errors were encountered: