zoukankan      html  css  js  c++  java
  • git submodule ssh key

    git 拉所依赖的项目生产ssh key

    进入

    $ cd ~/.ssh
    admin@admin MINGW64 ~/Desktop
    $ cd ~/.ssh
    
    admin@admin MINGW64 ~/.ssh

    admin@admin MINGW64 ~/.ssh
    $ ssh-keygen -t rsa -C "abc@abc.com"
    Generating public/private rsa key pair.
    Enter file in which to save the key (/c/Users/admin/.ssh/id_rsa):
    /c/Users/admin/.ssh/id_rsa already exists.
    Overwrite (y/n)? y
    Enter passphrase (empty for no passphrase):
    Enter same passphrase again:
    Your identification has been saved in /c/Users/admin/.ssh/id_rsa.
    Your public key has been saved in /c/Users/admin/.ssh/id_rsa.pub.
    The key fingerprint is:
    SHA256:I1T2ULkk5vht9kXP5wXltIZlQIgUdvi4O6APaogsQRX abc@abc.com
    The key's randomart image is:
    +---[RSA 2048]----+
    | ===ooo. |
    | E o+=+. oo|
    | . .+ o+. ++.|
    | o .. .... .oo.|
    |o ..S.. ..+ |
    |. o.o+ . =|
    |o.. .. .o.. . .o|
    |oo .... o . .|
    |. .. .. . |
    +----[SHA256]-----+

    找到c:/Users/admin/.ssh/id_rsa.pub 用文本打开

    将秘钥加入到git  SSHKeys 上

    git submodule update --init --recursive 就可以将所依赖的模块clone下来了

  • 相关阅读:
    阅读《构建之法(第三版)》提出的问题
    职位部门管理系统
    JSON
    hashcode()和equals()方法
    JSF和Facelets的生命周期
    认识applet
    认识ajax
    hello1.java分析
    vue中的防抖和节流
    vue项目搭建
  • 原文地址:https://www.cnblogs.com/xlh91118/p/6655635.html
Copyright © 2011-2022 走看看