git 如何将 OpenShift 与私有 BitBucket 存储库连接

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/21972377/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 09:45:19  来源:igfitidea点击:

How to connect OpenShift with a private BitBucket Repository

gitsvngithubbitbucketopenshift

提问by Kil'jaeden

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.

我想在 OpenShift 上托管一个网站,但我希望我的代码与 Git 等“免费但私有”服务自动同步,所以我找到了 BitBucket。

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

我尝试通过从我的 OpenShift 应用程序粘贴此密钥来自行连接它:

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

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

into:

进入:

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

BitBucket -> 存储库 -> 导入存储库 -> 旧存储库。

But I get this error:

但我收到此错误:

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

不支持的协议。请使用“http://”、“https://”、“svn://”或“git://”。

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

我相信我和这个人有同样的问题: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.

但我不明白如何应用这个解决方案。在你问之前,是的,我是 Github、BitBucket 和 OpenShift 等的新手。

采纳答案by Kil'jaeden

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

我建议那些(几乎)与我遇到相同问题的人,或者像我这样的 OpenShift 和 BitBucket 初学者阅读并理解 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.

在那个小教程之后,我能够通过 SourceTree 将 OpenShift 与 BitBucket 连接起来。