简体   繁体   English

如何将 Bitbucket git 克隆到 cPanel Git™ 版本控制中

[英]How to clone Bitbucket git into cPanel Git™ Version Control

I have git into my Bitbucket account and I want clone those git into my cPanel Git™ Version Control.我在我的 Bitbucket 帐户中有 git,我想将这些 git 克隆到我的 cPanel Git™ 版本控制中。 How to do that?怎么做?

I was able pull git using cPanel terminal.我能够使用 cPanel 终端拉动 git。 but I want to make clone using cPanel Git™ Version Control.但我想使用 cPanel Git™ 版本控制进行克隆。

We want to make bitbucket git clone using cPanel Git™ Version Control so that we can create more branches from cPanel git and do version control for cPanel copy.我们想使用 cPanel Git™ 版本控制克隆 bitbucket git,以便我们可以从 cPanel git 创建更多分支并对 cPanel 副本进行版本控制。 I tried to clone bitbucket git using https, git and ssh url into cPanel Git™ Version Control but then I am getting following error. I tried to clone bitbucket git using https, git and ssh url into cPanel Git™ Version Control but then I am getting following error.

From BitBucketBitBucket

git clone https://<AccountName>@bitbucket.org/<RepositoryName>/<BranchName>.git

Into cPanel Git™ Version Control But I am getting following error.进入cPanel Git™ 版本控制但我收到以下错误。

https://<AccountName>@bitbucket.org/<RepositoryName>/<BranchName>.git

在此处输入图像描述

Then i have tested with SSH and Git path from bitbucket然后我用 SSH 和 Git 路径从 bitbucket 测试

For SSH path I am getting following error.对于 SSH 路径,我收到以下错误。

ssh://git@bitbucket.org/<workspace_ID>/<repo_name>.git

在此处输入图像描述

Fog git url which is copied from Clone button in bitbucket, I am getting following error.雾 git url 是从 bitbucket 中的克隆按钮复制的,我收到以下错误。

git@bitbucket.org:<workspace_ID>/<repo_name>.git

在此处输入图像描述


  • I have created SSH Access keys into cPanel, Do i have to use that anywhere for cloning??我已经在 cPanel 中创建了 SSH 访问密钥,我必须在任何地方使用它进行克隆吗?
  • Can you guide me steps in details for cloning git from bitbucket into cPanel Git™ Version Control您能否指导我详细介绍将 git 从 bitbucket 克隆到 cPanel Git™ 版本控制的步骤

Thank You.谢谢你。

  1. Go to repository settings on Your Bitbucket Repository Console Go 到 Bitbucket 存储库控制台上的repository settings
  2. Under General menu, click Access keysGeneral菜单下,单击Access keys
  3. Click Add key button单击Add key按钮
  4. Open id_rsa.pub file from cpanel file manager that you have created从您创建的cpanel file manager中打开id_rsa.pub文件
  5. Copy and paste its contents to Bitbucket Access keys under Key form input, and click Add SSH Key button将其内容复制并粘贴到Key form input 下的 Bitbucket Access keys 中,然后单击Add SSH Key按钮
  6. On the CPanel Git™ Version Control, add and clone repository, if any error message, it will be create a known_hosts file in cpanel file manager .在 CPanel Git™ 版本控制上,添加和克隆存储库,如果有任何错误消息,它将在cpanel file manager中创建一个known_hosts文件。
  7. Repeat step 6 one more time再重复第 6 步

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM