I'm trying to deploy to heroku from a particular directory in my project:
I've tried this command: git subtree push --prefix output heroku master
and I get the response:
error: failed to push some refs to 'git@heroku.com:intquest.git' hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Integrate the remote changes (eg
Is there a way to --force
this command? Or what exactly am I doing wrong?
如果您确定要用新的历史记录替换远程heroku master
历史记录,则可以尝试类似于以下答案 :
git push heroku `git subtree split --prefix output master`:master --force
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.