Reputation: 79
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
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