LoginSignup
1
0

More than 5 years have passed since last update.

git のリモートリポジトリの URL を変更する

Posted at

研究室の git サーバが移行することになったので,ローカルの git の設定の変更方法を残しておきます。

$ git remote set-url [name] [URL]
  • [name]: リモートリポジトリ名
  • [URL]: 設定したいURL

例:

$ git remote set-url origin git@git.example.com:foo/bar.git

ちなみに…

$ git remote

で,そのローカルリポジトリのリモートリポジトリ名の一覧が表示されます!

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