I'm trying to push my build folder, dist-new, with this command:
git subtree push --prefix dist-new heroku master
Unfortunately, I get this error:
error: failed to push some refs to 'https://git.heroku.com/it
ribe-frontend.git'
hint: Updates were rejected because a pushed branch tip is be
hind its remote
hint: counterpart. Check out this branch and integrate the re
mote changes
hint: (e.g. 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help'
I can't force the deployment, because git subtree does not have a force option.
Googling around, I've seen a recommendation to do this:
git push heroku git subtree split --prefix dist master:master --force
But that throws this error:
error: unknown option `prefix'
Does anyone have any ideas?