fatal: remote error: is not a valid repository name

GitGit BASH

目次一覧

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

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

 閲覧数:356 投稿日: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
2024/4/19 22:00 更新
週間人気ページランキング / 4-12 → 4-18
順位 ページタイトル抜粋 アクセス数
1 動画対応 | プログラミング 7
1 Twitter アカウント管理 | Twitter Developer(Twitter) 7
2 本 | ブックマーク 6
3 GitHubリモートリポジトリ名には日本語を使用できない。使用すると、ハイフンへ自動置換されてしまう | GitHub(Git) 5
4 気になるアプリ | ブックマーク 3
4 Windows10で使用できるGitクライアント | GitHub(Git) 3
5 「Twitterデータ」対応 | Twitter Developer(Twitter) 1
5 Git BASH(Git) カテゴリー 1
5 同じ携帯電話番号でも、複数の「Twitter Developers」アカウントを作成可能 | Twitter Developer(Twitter) 1
5 2012年 1
5 Git BASH 作業履歴 2022/10/20 / P48 site-rank(First-Ranking-Service) / 「Add a README」後「git push -f origin main」実行したため、「README」削除 | Git BASH(Git) 1
5 SFC(プログラミング) カテゴリー 1
5 「Twitter API」は、2023 年 5 月 10 日時点では、SMS認証(電話番号登録)不要でプロジェクト作成できるよう仕様変更されています。 | Twitter API (Twitter) 1
5 3.作業ディレクトリ内へ、Gitの(空の)ローカルリポジトリを作成する / 4.作業ディレクトリ内の変更をステージングエリアへ追加してコミット候補にする / 5.インデックスに追加されたファイルをコミットする(コミットメッセージも指定する) 1
5 6.ローカルリポジトリに、リモートリポジトリを設定する / ローカルリポジトリに設定されている、リモートリポジトリ内容を一覧表示(URLも表示) / ローカルリポジトリ(mainブランチ)(の変更)を送信して、リモートリポジトリ(「origin」上の同名ブランチ)へ反映させる 1
5 和田晃一良 年表 1
5 RTだけ表示するやつ / 2020/3/20時点の結論 / Link 1
5 地雷API | API(プログラミング) 1
5 Amazonアソシエイト・プログラム 1
5 開発 0 1
2024/4/19 1:02 更新