Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

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

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

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

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
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading