GitCommandError on bench new-app

Attempting to create a new app with
bench new-app {appname}

results in

git.exc.GitCommandError: Cmd(‘git’) failed due to: exit code(129)
cmdline: git init --initial-branch=develop
stderr: ‘error: unknown option `initial-branch=develop’
error

Bench version 5.16.4, git version 2.25.1, Ubuntu linux.

What should I do?

solved - had to update my git to 2.31+, see Installing Latest version of git in ubuntu - Stack Overflow

I got the same error. If I have to update git, the Stack Overflow answer says use sudo. I am on Frappe cloud. When I try sudo it is not working. Don’t think I have sudo.

How to resolve this?