简体   繁体   English

Git 子树无法推送到 Heroku

[英]Git subtree fails to push to Heroku

I tried to push my Django app to Heroku我试图将我的 Django 应用程序推送到 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如果我使用 git subtree add,它会给我

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?有没有人遇到过同样的问题?

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 .然后,使用git subtree add

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM