LoginSignup
9
9

More than 5 years have passed since last update.

githubに複数アカウントでssh接続する為の手順

Posted at

概要

仕事用のアカウントとプライベート用のアカウントを使い分けたいけどどうするんだ?というところから調べてみました。

手順

基本的には こちら の記事通りやればOK。

あとは こちらもしておくとcommit完璧かも。
(ただし、こちらの記事ローカルのgit configのメールアドレス設定が間違えているので気をつけてください)

git config user.mail "nemoto2@example.com"

この部分ですが、下記のようにする必要あります。

git config user.email "nemoto2@example.com"

(コミットログを確認した時にメールアドレスだけ変わってなかったので焦りました。。。)

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