使用git拉文件
yum install git
git config --global user.name "xxx"
git config --global user.email "[email protected]"
生成祕鑰對
ssh-keygen -t rsa -C "[email protected]"
cat ~/.ssh/id_rsa.pub
添加公鑰到你的遠程倉庫
登陸你的github帳戶。點擊你的頭像,然後 Settings -> 左欄點擊 SSH and GPG keys -> 點擊 New SSH key
git clone git@xxx mydir