美文网首页
git安装客户端的配置

git安装客户端的配置

作者: 测试的旅途中 | 来源:发表于2019-03-13 13:04 被阅读0次

    <meta charset="utf-8">

    1.git工具使用文档,地址:https://git-scm.com/book/zh/v2/%E8%B5%B7%E6%AD%A5-%E5%85%B3%E4%BA%8E%E7%89%88%E6%9C%AC%E6%8E%A7%E5%88%B6

    2.配置git

    1.$ git config --global user.name 'liaidong'

    2.$ git config --global user.email 'lad@acmtc.com'

    3.$ ssh-keygen -t rsa -C 'lad@acmtc.com'

    接着按三个回车,则:

    Generating public/private rsa key pair.

    Enter file in which to save the key (/c/Users/lad/.ssh/id_rsa):

    Created directory '/c/Users/lad/.ssh'.

    Enter passphrase (empty for no passphrase):

    Enter same passphrase again:

    Your identification has been saved in /c/Users/lad/.ssh/id_rsa.

    Your public key has been saved in /c/Users/lad/.ssh/id_rsa.pub.

    The key fingerprint is:

    SHA256:uDE36qp+h3qVpjo+SSDOeNoIK1J58V6u61kb3hgwEHA lad@acmtc.com

    The key's randomart image is:

    +---[RSA 2048]----+

    | ..E |

    | . . |

    | . |

    |o .. . |

    |=. . o*.S |

    |oo= . =O.. |

    |.O o *oo+ |

    |* = =.o+.* |

    |ooO.+o+ . |

    +----[SHA256]-----+

    4.查看生成的公钥和私钥
    C:\Users\lad.ssh
    5.在git的web端ssh key中导入公钥
    点击‘ADD Key’按钮即可

    相关文章

      网友评论

          本文标题:git安装客户端的配置

          本文链接:https://www.haomeiwen.com/subject/fjqwoxtx.html