Unable to deploy to Vapor Cloud in an app that already has Git

I’ve been doing the videos already and in the videos you don’t deploy the app to Vapor Cloud.

I had however added git to my app and I have been tracking it already. However when I try to deploy the app. vapor cloud deploy doesn’t automatically see my git folder and configure my app. I get this.

tliapp git:(develop) vapor cloud deploy
Git detected, to manually choose an application use the --app option.
Error: backgroundExecute(code: 129, error: “error: Unknown subcommand: get-url\nusage: git remote [-v | --verbose]\n or: git remote add [-t ] [-m ] [-f] [–tags|–no-tags] [–mirror=<fetch|push>] \n or: git remote rename \n or: git remote remove \n or: git remote set-head (-a | --auto | -d | --delete |)\n or: git remote [-v | --verbose] show [-n] \n or: git remote prune [-n | --dry-run] \n or: git remote [-v | --verbose] update [-p | --prune] [( | )…]\n or: git remote set-branches [–add] …\n or: git remote set-url [–push] []\n or: git remote set-url --add \n or: git remote set-url --delete \n\n -v, --verbose be verbose; must be placed before a subcommand\n\n”, output: “”)

any hints of what I can do? I’ve tried using the slug name and the branch name and no go. :frowning:

if you do git --version what does it say?

Have you got a remote set up?

I do have a remote set up and the version of git I have is.

git version 2.2.0

Upgrading Git helped.

Is it all fixed now?

It is. Thank you. I’m on an issue where i’m trying to

“vapor cloud run --env=production "revert --all --yes”

but i’m getting

"TILApp git:(master) vapor cloud run --env=production “revert --all --yes”

app: TIL
env: production
Running ‘.build/release/Run --env=production revert --all --yes --env=production’
[Deprecated] --option=value syntax is deprecated. Please use --option value (with no =) instead.
[ INFO ] Migrating ‘psql’ database (FluentProvider.swift:28)
[ INFO ] Migrations complete (FluentProvider.swift:32)
Usage: /vapor/tilapp-yungdai-production/code/.build/release/Run revert [–all,-a]
[tilapp-yungdai-production-deployment-6d795c684-n2d9f]
Reverts migrations that have been previously prepared.
By default, only the latest batch of migrations will be reverted.
[tilapp-yungdai-production-deployment-6d795c684-n2d9f]
Options:
all Reverts all migrations, not just the latest batch.
:warning: [CommandError.excessInput: Too many arguments or unsupported options were supplied: [“–env=production”]]"

Hmm remove the --env=production, maybe something has changed