研究室の 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
で,そのローカルリポジトリのリモートリポジトリ名の一覧が表示されます!
More than 5 years have passed since last update.
研究室の git サーバが移行することになったので,ローカルの git の設定の変更方法を残しておきます。
$ git remote set-url [name] [URL]
例:
$ git remote set-url origin git@git.example.com:foo/bar.git
ちなみに…
$ git remote
で,そのローカルリポジトリのリモートリポジトリ名の一覧が表示されます!
Register as a new user and use Qiita more conveniently