Skip to content
Back

Cannot create cloud function due to this error:

  • 0
  • Functions
qorinn
16 Jan, 2026, 10:56

As I try to deploy a new function to Github I get this error message:

TypeScript
Unable to clone code repository: fatal: ' ' is not a valid branch name
hint: See `man git check-ref-format`
hint: Disable this message with "git config set advice.refSyntax false"
TL;DR
Error message: Cannot create cloud function due to invalid branch name when deploying to Github. Solution: Disable the error message by running `git config set advice.refSyntax false`.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more