LoginSignup
0
0

More than 3 years have passed since last update.

リモートリポジトリのURLを変更したい

Posted at

githubで良さげなソースコードをcloneしてみて、自分のgithubで管理したいというときはリモートリポジトリのURLを変更する必要があります。

そんなときに読むめも

リモートリポジトリのURLの確認

git remote -v

こんな感じでリモートリポジトリのURLが見れます。

origin  git@github.com:USERNAME/REPOSITORY.git (fetch)
origin  git@github.com:USERNAME/REPOSITORY.git (push)

リモートリポジトリのURL変更

git remote set-url origin https://github.com/USERNAME/REPOSITORY.git

githubでリポジトリ作れば、git remote set-url origin以降のURLはコピペで取得できるので、それを貼り付ければおわり

最後に冒頭のコマンドでリモートリポジトリのURLが変わっていることが確認できればOKです

参考文献

0
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
0
0