fatal: remote error: is not a valid repository name

Git > Git BASH

目次一覧

 状態:結論(後で見返す用)  閲覧数:3,368  投稿日:2020-06-01  更新日:2020-06-01
作業履歴 / 問題発生 / 対応

作業履歴 / 問題発生 / 対応

 閲覧数:583 投稿日:2020-06-01 更新日:2020-06-01

作業履歴


GitHubでリモートリポジトリを作成する
GitHubへログインした状態で、「New」ボタンを押す

cd
作業ディレクトリ(Lドライブの「/3_開発/git/東京都/」)へ移動する
user@xxxx MINGW64 /c
$ cd /L/3_開発/git/東京都

git init
作業ディレクトリ内へ、Gitの(空の)ローカルリポジトリを作成する
user@xxxx MINGW64 /L/3_開発/git/東京都
$ git init
Initialized empty Git repository in L:/3_開発/git/東京都/.git/


git add -A
作業ディレクトリ内にあるファイルを全てコミット候補にする
user@xxxx MINGW64 /L/3_開発/git/東京都 (master)
$ git add -A

git commit
変更結果(インデックスに追加されたファイル)をローカルリポジトリにコミットする
※コミットとは、ファイルやディレクトリの追加や変更をリポジトリに記録する操作のこと
user@xxxx MINGW64 /L/3_開発/git/東京都 (master)
$ git commit -m "first commit"
[master (root-commit) 99ac2bf] first commit
1 file changed, 1 insertion(+)
create mode 100644 "\346\235\261\344\272\254\351\203\275\346\270\257\345\214\272.txt"


git remote add origin
(リモートリポジトリへ反映させる前に、)ローカルリポジトリへ、リモートリポジトリの情報(GitHubリモートリポジトリのアドレス)を追加する
※リモートリポジトリは、GitHub の GUI 経由で事前作成しておく必要がある
user@xxxx MINGW64 /L/3_開発/git/東京都 (master)
$ git remote add origin git@github.com:GitHubユーザー名/東京都.git

git remote -v
ローカルリポジトリに設定されている、リモートリポジトリ内容を一覧表示(URLも表示)
user@xxxx MINGW64 /L/3_開発/git/東京都 (master)
$ git remote -v
origin  git@github.com:GitHubユーザー名/東京都.git (fetch)
origin  git@github.com:GitHubユーザー名/東京都.git (push)


問題発生


git push origin master
ローカルリポジトリ(masterブランチ)(の変更)を送信して、リモートリポジトリ(「origin」上の同名ブランチ)へ反映させる
user@xxxx MINGW64 /L/3_開発/git/東京都 (master)
$ git push -u origin master
fatal: remote error:
  is not a valid repository name
 Email support@github.com for help


対応


リモートリポジトリを作成する
Git Bash で、ローカルからリモートリポジトリを作成できない


Git Bash で異なるディレクトリの指定ディレクトリへ移動する。「$ cd /L/3_開発/git/大阪府」

「ERROR: Repository not found. fatal: Could not read from remote repository.」と表示された場合は、



類似度ページランキング
順位 ページタイトル抜粋 %
1 fatal: remote error: is not a valid repository name 31
2 Twitter Developer Labs 29
3 Knuth–Morris–Pratt algorithm border 27
4 we are unable to approve your developer application at this time. 25
5 You currently have access to a subset of Twitter API v2 endpoints 25
6 「Twitter Developers」でApp作成 25
7 Twitter Developers からのメール   25
8 「ERROR: Repository not found. fatal: Could not read from remote repository.」と表示された場合は、 23
9 User is not Authorized の闇 23
10 「Default branch」ではなく「Your branches」 22
11 authorize authenticate 21
12 「Twitter Developer」で、遭遇したエラー系メッセージ 20
13 「Email sent! We sent you a new copy of the confirmation email.」と表示されているのに、メール受信出来ない 20
14 同じ携帯電話番号でも、複数の「Twitter Developers」アカウントを作成可能 20
15 Phone number is already in use for too many accounts and cannot be added to another user. 20
16 「Twitter Developer」審査結果に通り、appを作成。しかし、いつの間にか「User is not Authorized」が表示されていたケース 20
17 GitHub Desktop 試行錯誤履歴 19
18 「Google AdSense」と「iOSアプリ開発」の共通点 19
19 旧 Twitter API 分類 / REST APIs / Streaming APIs 18
20 Twitterにおける「name」「screen_name」「user_id」の意味は明確に異なる 17
2026/11/17 15:42 更新
週間人気ページランキング / 11-10 → 11-16
順位 ページタイトル抜粋 アクセス数
1 ログイン 10
2 開発 0 9
3 Git Bash で異なるディレクトリの指定ディレクトリへ移動する。「$ cd /L/3_開発/git/大阪府」 | Git BASH(Git) 3
3 「This App has violated Twitter Rules and policies. As a result, it can no longer be accessed. For assistance, submit a support ticket.」と表示された場合、 | Twitter API (Twitter) 3
4 うさみみハリケーン | ソフトウェア 2
4 技術書籍 | プログラミング 2
4 「Twitterデータ」対応 | Twitter Developer(Twitter) 2
5 2018年を振り返り、2019年の方針を決める。Webサービスビジネス | Webサービスビジネス 1
5 GitHub(Git) カテゴリー 1
5 0.GitHub リモートリポジトリ作成 / 1.「Git BASH」起動 / 2.ディレクトリ移動 1
5 口論 1
5 カテゴリ一覧 1
5 決済系用語の整理 | 決済(Webサービスビジネス) 1
5 プロジェクトをいかに再利用しやすい様、共通するかが大事 | Webサービス開発 1
5 「ショートメール送信の上限」と「アカウントの凍結」は異なる 1
5 Twitter 目次 | Twitter Developer(Twitter) 1
5 拒否 1
5 検索結果上位に表示されるが、現在の「Twitterサービス利用規約」とは異なる文言 1
5 「Twitter Developer Platform」申請 に関して 1
5 Q1.「Twitter API」は必ずユーザ認証させる必要がある? 自分のデータを取得する場合はユーザ認証画面へ遷移させる必要はない? 1
2026/11/17 5:05 更新