使用git拉文件

yum install git git config --global user.name "xxx" git config --global user.email "xxx@163.com" 生成秘钥对 ssh-keygen -t rsa -C "your_email@youremail.com" cat ~/.ssh/id_rsa.pub 添加公钥到你的远程仓库 登陆你的github帐户。点击你的头像,然后 Settings -> 左栏点击 SSH and GPG keys -> 点击 New SSH key git clone git@xxx mydir