【问题标题】:clone a fork project in bitbucket在 bitbucket 中克隆一个 fork 项目
【发布时间】:2013-12-17 08:15:28
【问题描述】:

我是 bitbucket 的新手。我正在阅读 bitbucket 文档来学习它。我在分叉概念。在 fork 文档中,他们提供了如何将 fork 存储库克隆到我的本地计算机的教程。本教程使用 TortoiseHG 工作台。我已经将外部回购分叉到我的回购中。现在我想使用 git bash 克隆我的 fork 存储库,因为我已经克隆了一个 git 存储库。我无法使用 bit bash 克隆 fork 存储库。是只使用 TortoiseHG Workbench 克隆了 fork repo 还是有克隆命令。

我正在使用这些命令来克隆我的 fork 存储库。

git clone git@bitbucket.org:user/myqoute.git

错误是

conq: not a git repository.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

【问题讨论】:

    标签: fork clone bitbucket git-bash


    【解决方案1】:

    首先,您需要分叉(意思是在 BitBucket 端进行克隆)一个 Git 存储库,而不是像 tutorials/tutorials.bitbucket.org 这样反复无常的存储库。

    例如使用tutorials/online-edit-starter

    然后你可以克隆那个叉子:

    git clone https://bitbucket.org/yourUserName/online-edit-starter.git
    

    (使用您的 BitBucket 凭据:用户名和密码)

    或者:

    git clone git@bitbucket.org:yourUserName/online-edit-starter.git
    

    (前提是您在该 repo 中注册了您的公共 ssh 密钥)


    如何克隆存储库?proposed by Rajesh Chaubey

    第一次使用 fork 存储库:

     git clone https://rajeshchaubey87@bitbucket.org/rajeshchaubey87/uispark.git
    

    (复制您的存储库网址。) (然后转到您的主文件夹)。

    cd uispark
    git remote add upstream https://animatorstar@bitbucket.org/animatorstar/uispark.git
    git fetch upstream
    git merge upstream/master
    git remote -v
    git status
    git add -A
    git commit -m "your comment here"
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-12-21
      • 2021-06-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-11-24
      • 2020-03-20
      相关资源
      最近更新 更多