273
175

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.

GitHubのリポジトリ名変更方法

Last updated at Posted at 2017-05-16

作ってからリポジトリ名が気に入らない時ってありますよね。
それを後から変更したときのメモ

GitHub側の操作

GitHubの対象リポジトリ > Setting > Renameで変更

だけです。

ローカル側の操作

対象ディレクトリ内の .git > configを開き

[remote "origin"]
	url = https://github.com/hisurga/hello-github.git
	fetch = +refs/heads/*:refs/remotes/origin/*

[remote "origin"]
	url = https://github.com/hisurga/hello-gitHub2.git
	fetch = +refs/heads/*:refs/remotes/origin/*

に変更

以上です。簡単ですね。

反映されているか確認したい方は、何かしらの方法でリポジトリに問い合わせて
問題が起きなければオッケーです。

273
175
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
273
175

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?