使用git拉文件

使用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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章