I just created a new Heroku app and I don't manage to push the subtree folder backend
of my repo (branch staging
) to the newly created app myapp-staging
(no branch yet).
Here is how I push the subtree:
git push heroku `git subtree split --prefix=backend staging`:master
An the related error:
error: unable to push to unqualified destination: master
The destination refspec neither matches an existing ref on the remote nor
begins with refs/, and we are unable to guess a prefix based on the source ref.
error: failed to push some refs to 'git@heroku.com:myapp-staging.git'
I tried git fetch heroku
. What does this "unqualified destination" mean? Shouldn't this command create the distant branch?