originを削除する

カテゴリー: GitHub  閲覧数:298 配信日: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 → 2024-4-25
順位 ページタイトル抜粋 アクセス数
1 GitHubリモートリポジトリ名には日本語を使用できない。使用すると、ハイフンへ自動置換されてしまう | GitHub(開発環境) 889
2 fatal: remote error: is not a valid repository name | Git BASH(開発環境) 653
3 Twitter アカウント管理 | Twitter Developer(Twitter) 601
4 動画対応 | プログラミング 566
5 Twitter API | Twitter API (Twitter) 563
6 「Twitterデータ」対応 | Twitter Developer(Twitter) 507
7 開発 0 475
8 本 | ブックマーク 428
9 Webサービス | ブックマーク 414
10 マッチングサービス | Webサービスビジネス 401
11 Windows10で使用できるGitクライアント | GitHub(開発環境) 368
12 同じ携帯電話番号でも、複数の「Twitter Developers」アカウントを作成可能 | Twitter Developer(Twitter) 296
13 技術書籍 | プログラミング 294
14 気になった動画 | ブックマーク 286
15 埋め込みツイート | Twitter Developer(Twitter) 269
16 TwitterOAuth では、画像URL を指定した画像投稿は出来ない(と思う)。ライブラリを使用しなければ出来るから、Twitter API の制限ではない(と思われる)  | Twitter 268
17 個人事業主 | Webサービスビジネス 250
18 teratailでは質問しない | プログラミング 246
19 Twitter 電話番号の問題 | Twitter Developer(Twitter) 204
20 過去の「0文字引用RT」を期間指定して取得しようとするも、挫折 | Twitter API (Twitter) 179
2024/4/26 1:02 更新