1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

[Git]This repository moved. Please use the new location

Posted at

GitHubのリポジトリ名を変更後に、pushしたら下記のようなメッセージが出ました。

Terminal
$ git push origin master
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 294 bytes | 294.00 KiB/s, done.
Total 3 (delta 2), reused 0 (delta 0)
remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
remote: This repository moved. Please use the new location:
remote:   https://github.com/tetsu-upstr/JSblog.git
To https://github.com/tetsu-upstr/blog.git
   7468063..962d5cd  master -> master

リポジトリが動いたから、新しい場所(URL)を設定してねって書いてあります。

Terminal
This repository moved. Please use the new location:

##解決方法

現在のURL設定を確認します。

Terminal
git remote -v

下記のように表示されました。

Terminal
origin  https://github.com/tetsu-upstr/blog.git (fetch)
origin  https://github.com/tetsu-upstr/blog.git (push)

正しいURLを指定します。

Terminal
$ git remote set-url origin https://github.com/tetsu-upstr/JSblog.git

再度確認してみると、変更されているのがわかります。

Terminal
$ git remote -v
origin  https://github.com/tetsu-upstr/JSblog.git (fetch)
origin  https://github.com/tetsu-upstr/JSblog.git (push)
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?