Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to connect OpenShift with a private BitBucket Repository

I want to host a website on OpenShift but I want my code to synchronize automatically with a "free but private" service like Git, so I found BitBucket.

I tried to connect it by my self by pasting this key from my OpenShift app:

ssh://[email protected]/~/git/XXXXXXXXXX.git/

into:

BitBucket -> Repository -> Import Repository -> Old Repository.

But I get this error:

Unsupported protocol. Please use 'http://', 'https://' , 'svn://' or 'git://.

I believe I have the same issue as this guy: https://www.openshift.com/forums/openshift/connect-to-bitbucket-repository-from-openshift-app

But I don't understand how to apply this solution. Before you ask, yes I'm new to Github, BitBucket and OpenShift etc.

like image 271
Kil'jaeden Avatar asked Feb 23 '14 18:02

Kil'jaeden


People also ask

How do I deploy a private repository?

To register the repository SSH key with your private repository on GitHub, go to the Settings for the repository. On GitHub the repository SSH key is referred to by the term Deploy key. Search down the settings page and find the Deploy keys section and select it. Click on the Add deploy key button.


1 Answers

After a lot of searching on Google I found the solution...

I suggest to people with (almost) the same issue as I had, or who are also beginners like me with OpenShift and BitBucket to read and understand this well written tutorial by Redhat: https://www.openshift.com/developers/install-and-setup-putty-ssh-client-for-windows

After that small tutorial, I was able to connect OpenShift with BitBucket through SourceTree.

like image 121
Kil'jaeden Avatar answered Sep 30 '22 21:09

Kil'jaeden