Open3
Git - pushユーザーを切り替えたい

gitアカウントが複数ある場合に、gitのpushユーザーを切り替えたい
- sshのkeyの確認
$ ~/.ssh/config
Host github.com ...
Host github-sub ...

-
git remote -v
で既存の設定を確認
$ git remote -v
origin [host name]:hogehoge.git (fetch)
origin [host name]:hogehoge.git (push)

-
git remote set-url
でホストの変更
git remote set-url origin [new host name]:hogehoge.git
以上