Home > other >  Why does it say a file I have doesn't exist when I do git subtree push?
Why does it say a file I have doesn't exist when I do git subtree push?

Time:12-16

I used a monorepo structure for my project. I'm not trying to deploy my API on Heroku with the CLI. When I do git subtree push from the top level of the working tree I get the following error:

'IEEE-CIS' does not exist; use 'git subtree add'

The directory clearly exist as you can see in my project. I used git subtree add with no success. Here's the full command I'm using atm:

git subtree push --prefix=IEEE-CIS Fraud Detection/packages fraud_detection_api heroku main

CodePudding user response:

On the command line, spaces separate arguments. IEEE-CIS is being interpreted as the prefix, then Fraud, and Detection/packages are separate arguments.

Try quoting the argument:

git subtree push --prefix="IEEE-CIS Fraud Detection/packages" fraud_detection_api heroku main
  • Related