git初始化 2018-04-25

初始化:

git config --global user.name "vvv"    (初始化你的名字)

git config --global user.email "[email protected]" (初始化你的邮箱)

cd ~/.ssh (执行后,有文件就备份后删除,没有就继续下一步)

ssh-keygen -t rsa -C "[email protected]"   (初始化ssh的公私钥)

按3个回车,密码为空。

cat ~/.ssh/id_rsa.pub  (查看公钥)

把.pub里面的秘钥放到Git上去(可以直接交给Git的管理者,Git管理者给好所有操作权限!)

你可能感兴趣的:(git初始化 2018-04-25)