一 、git
設置Git的user name和email:github
$ git config --global user.name "xxx"
$ git config --global user.email "xxx@xxx.com"
2、生成SSH密鑰過程:
1.查看是否已經有了ssh密鑰:cd ~/.ssh
若是沒有密鑰則不會有此文件夾,有則備份刪除
2.生存密鑰:bash
$ ssh-keygen -t rsa -C "xxx@xxx.com"
3.一路回車下去就行了。ssh
4.在github我的中心setting上添加ssh密鑰,這要添加的是「id_rsa.pub」裏面的公鑰。code
到此結束。it