• linux,git安装与配置


    1.安装依赖:yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker

    2.下载git包:wget https://github.com/git/git/archive/v2.8.0.tar.gz

    3.解压:tar -zxcf v2.8.0.tar.gz

    4.进入git编译:cd git-2.8.0/然后编译sudo make prefix=/usr/local all

    5. 执行安装命令:sudo make prefix=/usr/local install

    6.查看版本git --version

    7.配置ssh秘钥:ssh-keygen -t rsa -C "fanxing531837"

    8.私钥添加到本地系统:ssh-add ~/.ssh/id_rsa(–如果系统提示:could not open a connection to your authentication agent:则需要执行一下命令:ssh-agent bash然后再执行上述的ssh-add id_rsa命令)

    9.看一下:cat ~/.ssh/id_rsa.pub

    10.git需要配置用户名和邮箱:git config --global user.name 'fanxing'和git config --global user.email '531837586@qq.com'

    11.

  • 相关阅读:
    CF1264E Beautiful League 解题报告
    CF1411G No Game No Life 解题报告
    Data structure on Bitcoin
    bitcoin Cryptography
    弹性布局Flex的基本语法
    Linq操作list
    dt某字段赋值
    List 添加数据
    dt 转 json 转实体
    队列
  • 原文地址:https://www.cnblogs.com/coolcold/p/8350538.html
Copyright © 2020-2023  润新知