fatal: remote error: is not a valid repository name

GitGit BASH

目次一覧

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

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

 閲覧数:541 投稿日: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/6/28 0:58 更新
週間人気ページランキング / 6-20 → 6-26
順位 ページタイトル抜粋 アクセス数
1 開発 0 5
2 ログイン 2
2 問題発生 / 「.git」ディレクトリ毎移動してみたが失敗 / イレギュラーな作業履歴 2
3 app削除して再度問い合わせ / 電話番号削除失敗 / 電話番号削除失敗したので、再度問い合わせ 1
3 Twitter 回答を得られたQ | Twitter Developer(Twitter) 1
3 エラー対応 1
3 Q4.Hashtags must link to a Twitter search with the hashtag as the query 1
3 うさみみハリケーン | ソフトウェア 1
3 「Twitter Developers」でApp作成 | Twitter Developer(Twitter) 1
3 iOSおよびAndroid上でのモーメントの作成できなくなります / だったら自分で作れば良いのでは? 1
3 埋め込みツイート 1
3 「Twitter API」経由でツイートを取得するためには? 1
3 過去の「0文字引用RT」を期間指定して取得しようとするも、挫折 | Twitter API (Twitter) 1
3 「$ git push」のuオプション 1
3 GitHubへ公開鍵(public key)を登録する / 作業ディレクトリ内に空のローカルリポジトリを作成する / 作業ディレクトリにあるファイル、ディレクトリをコミットする 1
3 Link / 処分するタイミング / 削除実行例 1
3 2019/6/24時点の感想 / 新規リポジトリ作成したら、勝手にディレクトリが作成されてしまう / 新規リポジトリ作成時に、勝手にディレクトリを作成しないようにする 1
3 「Twitter API」は、2023 年 5 月 10 日時点では、SMS認証(電話番号登録)不要でプロジェクト作成できるよう仕様変更されています。 | Twitter API (Twitter) 1
3 Link 1
3 HEAD / Link 1
2026/6/27 5:05 更新