LoginSignup
73
67

More than 5 years have passed since last update.

git リポジトリの向き先 url を変更する

Posted at

.git/config 直接いじってもいいと思いますけどね。

git remote set-url origin git@github.com:8mamo10/new.git

古いレポジトリに触りたいこともありそうな場合、origin とは別名で登録しておくとよさそう。

git remote set-url old-repos git@github.com:8mamo10/old.git
73
67
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
73
67