git

github用ssh-keygen

毎回調べてるのでなんとなくメモしておく。 ssh-keygen -t rsa less .ssh/id_rsa.pub 後はgithubの設定画面でキーを追加するだけ。

git-commitで怒られたはなし

git-commitし、vimでコメントを書いたところ error: There was a problem with the editor 'vi'. と言われたので、そんなときは下記を叩けばよいとのこと。 config --global core.editor vim

githubの初期設定 (複数アカウントを利用する場合)

git

1. 前提 githubのアカウント名をhogeとfugaとし、ssh秘密鍵のファイル名をそれぞれid_rsa_hogeとid_rsa_fugaとする。 2. sshの設定 ~/.ssh/configを作成する。 # github - hoge Host github.com-hoge User git Port 22 Hostname github.com IdentityFile ~/.…