user13851309
user13851309

Reputation: 79

Git subtree fails to push to Heroku

I tried to push my Django app to Heroku

git subtree push --prefix TEST heroku master

It gives me something like this

'TEST' does not exist; use 'git subtree add'

If I use git subtree add, it gives me

Working tree has modifications.  Cannot add.

I am not sure what is the problem and how to fix it. Has Anyone encountered the same problem before?

Upvotes: 0

Views: 659

Answers (1)

Safwan Samsudeen
Safwan Samsudeen

Reputation: 1707

Quite clear.

Working tree has modifications.  Cannot add.

The branch where you are working on has modifications. Commit them.

$ git add .
$ git commit -m 'Commit to add a subtree (or whatever)'

Then, use git subtree add.

Upvotes: 1

Related Questions