若未生成过密钥,先生成
ssh-keygen -t rsa -C "cndaqiang"
然后添加到github
cndaqiangdeMacBook-Pro:.ssh cndaqiang$ git config --global user.name "cndaqiang"
cndaqiangdeMacBook-Pro:.ssh cndaqiang$ git config --global user.emall "[email protected]"
若未生成过密钥,先生成
ssh-keygen -t rsa -C "cndaqiang"
然后添加到github
cndaqiangdeMacBook-Pro:.ssh cndaqiang$ git config --global user.name "cndaqiang"
cndaqiangdeMacBook-Pro:.ssh cndaqiang$ git config --global user.emall "[email protected]"