Git におけるユーザーの使い分けの一つの方法

結論

.git/config[remote "origin"]url 内にユーザー名を埋め込んでしまう。

[remote "origin"]
  url = https://USER-MEI-WO-IRERU@github.com/foobar/hogehoge.git

補足

*1:切り替えミスが怖いので、私は本記事の方法を使っています

Powered by はてなブログ