git 配置SSH
2017-03-21 本文已影响16人
程序员安娜
git config --global user.name "xxx"
git config --global user.email "xxx@xxx.com"
ssh-keygen -t rsa -C "xxx@xxx.com"

~ cat ~/.ssh/id_rsa.pub 查看ssh key

pbcopy < ~/.ssh/id_rsa.pub 复制到剪切板,就可以直接粘贴出去啦~
git config --global user.name "xxx"
git config --global user.email "xxx@xxx.com"
ssh-keygen -t rsa -C "xxx@xxx.com"
~ cat ~/.ssh/id_rsa.pub 查看ssh key
pbcopy < ~/.ssh/id_rsa.pub 复制到剪切板,就可以直接粘贴出去啦~