git 克隆私有存储库时出错

Error in git clone of a private repository

我正在尝试克隆私有存储库。我试过两种方法

  1. 使用 Android Studio

结果

  1. 使用 CMD

结果

C:\thoughtcast>git clone https://github.com/thoughtcastapp/git.android.ThoughtCast.git
Cloning into 'git.android.ThoughtCast'...
remote: Repository not found.
fatal: repository 'https://github.com/thoughtcastapp/git.android.ThoughtCast.git/' not found

用于验证 repo 的屏幕截图

How do I access my private repository?

此错误可能有多种原因。尝试按照提到的顺序进行操作

  1. Include your username in the repo url
git clone https://username@github.com/thoughtcastapp/git.android.ThoughtCast.git/
  1. Identify remote git repository to your terminal.
git remote set-url origin https://github.com/thoughtcastapp/git.android.ThoughtCast.git/
  1. Uninstall the git credentials manager and reinstall (for cmd, run as administrator)
$ sudo git credential-manager uninstall
$ sudo git credential-manager install
  1. If repo has been created by another user, check if you have read-write access.