(一)查看配置信息
git config --list
(二)配置用戶信息
git config --global user.name "your name"
git config --global user.email you@example.com
(三)生成公鑰和私鑰
ssh-keygen -t rsa -C user.email
cat ~/.ssh/id_rsa.pub
將公鑰粘貼在內(nèi)源網(wǎng)站,setting--SSH Key--設(shè)置 title -- Add Key