13
6

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 1 year has passed since last update.

【Git】リポジトリ名を変更する方法

Posted at

リモート側の作業

リポジトリの設定画面からリポジトリ名を変更します。

スクリーンショット 2022-11-12 22.32.53.png

ローカル側の作業

以下のコマンドを実行してローカルの設定を変更します。

$ git config remote.origin.url
変更前のリポジトリ名

$ git remote set-url origin https://github.com/新ユーザー名/新リポジトリ名.git

$ git config remote.origin.url
新リポジトリ名
13
6
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
13
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?