LoginSignup
14
12

More than 5 years have passed since last update.

githubにpushする際のoriginを変更する方法

Last updated at Posted at 2014-09-17

githubのpush先レポジトリを変更したい場合、
addコマンドではなくset-urlコマンドを使ったほうが好ましい。

git remote set-url <リポジトリの名前> <新しいリポジトリのURL>

例:

git remote set-url origin https://github.com/hogehoge/fugafuga.git
14
12
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
14
12