Navigation

    Gpushare.com

    • Register
    • Login
    • Search
    • Popular
    • Categories
    • Recent
    • Tags

    克隆github远程仓库到实例

    技术交流
    1
    1
    86
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • 173****7719
      173****7719 last edited by

      1. 创建公私秘钥
        ssh-keygen -t rsa -b 4096 -C “your_email@example.com”
        执行以后一直点回车,直到看到
        【The key’s randomart image is:】

      2. 执行 cat .ssh/id_rsa.pub
        复制显示出来的公钥

      3. 打开github,setting, SSH and GPG keys, 点击【New SSH key】, title 可以留白或者备注恒源云,将复制好的公钥粘贴到Key那一栏,点击【Add SSH key】

      4. 完成!之后可以用git ssh的方式克隆自己的项目了git
        clone git@github…

      1 Reply Last reply Reply Quote 2
      • First post
        Last post