originを削除する

カテゴリー: GitHub  閲覧数:368 配信日:2020-06-01 08:43


git push origin master
ローカルリポジトリ(masterブランチ)(の変更)を送信して、リモートリポジトリ(「origin」上の同名ブランチ)へ反映させる
user@xxxx MINGW64 /L/3_開発/git/大阪府 (master)
$ git push -u origin master
ERROR: Repository not found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.


git remote rm
ローカルリポジトリからリモート URL を削除する
※リモートリポジトリをサーバから削除するわけではない(ローカルリポジトリからリモートリポジトリへの参照を削除するだけ)
user@xxxx MINGW64 /L/3_開発/git/大阪府 (master)
$ git remote rm origin

user@xxxx MINGW64 /L/3_開発/git/大阪府 (master)
$ git remote add origin git@github.com:GitHubユーザー名/test_2020_06_01.git

user@xxxx MINGW64 /L/3_開発/git/大阪府 (master)
$ git remote -v
origin  git@github.com:GitHubユーザー名/test_2020_06_01.git (fetch)
origin  git@github.com:GitHubユーザー名/test_2020_06_01.git (push)


git push origin master
ローカルリポジトリ(masterブランチ)(の変更)を送信して、リモートリポジトリ(「origin」上の同名ブランチ)へ反映させる
user@xxxx MINGW64 /L/3_開発/git/大阪府 (master)
$ git push -u origin master
Enumerating objects: 3, done.
Counting objects: 100% (3/3), done.
Delta compression using up to 8 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 244 bytes | 122.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To github.com:GitHubユーザー名/test_2020_06_01.git
 * [new branch]      master -> master
Branch 'master' set up to track remote branch 'master' from 'origin'.


指定期間人気ページランキング / 2020-5-27 → 2025-2-18
順位 ページタイトル抜粋 アクセス数
1 GitHubリモートリポジトリ名には日本語を使用できない。使用すると、ハイフンへ自動置換されてしまう | GitHub(開発環境) 1004
2 fatal: remote error: is not a valid repository name | Git BASH(開発環境) 718
3 Twitter アカウント管理 | Twitter Developer(Twitter) 611
4 動画対応 | プログラミング 588
5 Twitter API | Twitter API (Twitter) 584
6 開発 0 560
7 「Twitterデータ」対応 | Twitter Developer(Twitter) 539
8 本 | ブックマーク 440
9 Windows10で使用できるGitクライアント | GitHub(開発環境) 428
10 Webサービス | ブックマーク 417
11 マッチングサービス | Webサービスビジネス 402
12 同じ携帯電話番号でも、複数の「Twitter Developers」アカウントを作成可能 | Twitter Developer(Twitter) 340
13 TwitterOAuth では、画像URL を指定した画像投稿は出来ない(と思う)。ライブラリを使用しなければ出来るから、Twitter API の制限ではない(と思われる)  | Twitter 309
14 技術書籍 | プログラミング 298
15 気になった動画 | ブックマーク 290
16 teratailでは質問しない | プログラミング 285
17 埋め込みツイート | Twitter Developer(Twitter) 271
18 個人事業主 | Webサービスビジネス 250
19 Twitter 電話番号の問題 | Twitter Developer(Twitter) 225
20 過去の「0文字引用RT」を期間指定して取得しようとするも、挫折 | Twitter API (Twitter) 193
2025/2/19 1:02 更新