When hosting openshift, I met this error. I use github/bitbucket repository for the sources.

When hosting openshift, I met this error. I use github/bitbucket repository for the sources.

You can do that in this way. You can clone bitbuket then add your remote branch with the openshift git repo.
follow this link.
Use existing git repo with openshift
========================================================================
1) Clone your repo
$ git clone <bitbucket-repo-url>
2) Then, Add the remote origin for openshift
$ git remote add openshift -f <openshift-git-repo-url>
3) After that, Merge your openshift repo with your local bitbucket
$ git merge openshift/master
4) Finaly push your git repo to openshift
$ git push openshift HEAD
Happy coding...