Archive for the ‘mac’ Category

mac:gitをインストールしてgithubを使う

homebrewからgitをインストールする brew install git gitHubに登録する公開鍵を作る cd ~/.ssh ssh-keygen github_rsa cat github_rsa ここで表示した文字列でGithibのアカウント設定から公開鍵の登録を行う。 git pushしたしたときに、自動的に公開鍵認証するように~/.ssh/configを編集する Host github.com User git Port 22 Hostname github.com IdentityFile ~/.ssh/github_rsa TCPKeepAlive yes IdentitiesOnly yes