LoginSignup
0
0

More than 1 year has passed since last update.

Azure Reposに対してgit cloneでエラーTF401019: The Git repository with name or identifier [リポジトリ名].git does not exist or you do not have permissions for the operation you are attempting.

Last updated at Posted at 2023-04-27

概要

git cloneした際にエラーででてくる下記のエラーは通常は対象のリポジトリが存在しないか、もしくはリポジトリ名を間違えているときにでるエラーのようです。

TF401019: The Git repository with name or identifier [リポジトリ名].git does not exist or you do not have permissions for the operation you are attempting.

躓いた状況

今回私の環境ではGitHubではなく、Azure Repos上のリポジトリに対してgit cloneしようとした際に当該のエラーが発生しました。

原因

リポジトリurlの末尾に「.git」を追加していたことが原因

解説

通常GitHubからリポジトリurlをコピーすると末尾が「.git」になりますが、Azure Repoでは.gitがつかない。

GitHubの画面
image.png

Azure Reposの画面
{9EDE8F3D-3ED9-4C24-ABC2-6A9A5928B0F6}.png.jpg

GitHubからのクローンが習慣化していたせいかリポジトリurlの末尾は「.git」だろ!
という思い込みで良かれとつけていた.gitが原因でした。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0