【发布时间】:2021-10-21 01:51:18
【问题描述】:
我正在尝试克隆一个 github 存储库,使用:
$ git remote add upstream https://github.com/.......
但我得到了错误:
fatal: not a git repository (or any of the parent directories): .git
我使用的格式:
$ git remote add <choose a remoteID, not "origin"> <URL to GitLab/GitHub/Atlassian/BitBucket>
我尝试过使用实际的 repo ID:使用元内容中的字符串
<meta content="123456789" name="octolytics-dimension-repository_id" />
在本例中,存储库的 ID 为 123456789。
【问题讨论】:
标签: git github gitlab git-clone git-remote