我怎样才能将openshift git存储库连接到bitbucket [英] How can i connect openshift git repository to bitbucket

查看:107
本文介绍了我怎样才能将openshift git存储库连接到bitbucket的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在已经在Red Hat openshift上创建了一个项目,我想知道如何将其与我的位桶帐户连接以维护和处理我的openshift项目 带有位桶

I've created a project on Red Hat openshift now i want to know about how can i connect it with my bit-bucket account to maintain and handle my openshift Project with bit-bucket

推荐答案

将当前存储库克隆到计算机中,

git clone {{ ssh:source_code }}

源代码URL在应用程序控制台中可用(在源代码下) 例如:

The source code URL is available in the app console (under source code) ex:

git clone ssh://555065b53433ca08f100001b@appname-domain.rhcloud.com/~/git/example.git/

登录到bitbucket,创建一个新的仓库,其类型为git.

log in to bitbucket, create a new repo, with type as git .

将您的终端导航到克隆的仓库,

navigate your terminal to the cloned repo,

将远程添加到克隆的仓库中

git remote add bitbucket https://username@bitbucket.org/username/reponame.git

要将更改推送到bitbucket上的远程仓库中,

To push the changes to the remote repo on bitbucket,

git push bitbucket { branch }

示例:

git push bitbucket master

要将更改推送到OpenShift存储库,

git push origin {branch}

这篇关于我怎样才能将openshift git存储库连接到bitbucket的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆