• 【Git】 Git安装及配置


      Git是一个开源的分布式版本控制系统,可以有效、高速的处理从很小到非常大的项目版本管理。而国外的GitHub和国内的Coding都是项目的托管平台。

      本例使用环境:Linux环境(CentOS 7.4)

    安装

      1、查看系统是否已经安装git

        查看版本号命令:git --verison

      2、yum 安装git

        命令:yum install -y git

      3、卸载git

        命令:yum remove git

    配置

      config 配置有system级别 global(用户级别) 和local(当前仓库)三个 设置先从system-》global-》local  底层配置会覆盖顶层配置 分别使用--system/global/local 可以定位到配置文件

      1、config 配置指令

        命令:git config

      2、查看系统config配置信息(文件:/etc/gitconfig,没有可以自己创建)

        命令:git config --system --list

      3、查看全局global配置信息(文件:~/.gitconfig)

        命令:git config --global --list

      4、查看本地local配置信息(文件:git仓库/.git/config)

        命令:git config --local --list

      5、设置配置信息(格式:git config --{level} {key} {value})

        设置全局用户名

        命令:git config --global user.name "yourname"

      6、查看配置信息(格式:git config --{level} {key} )

        查看全局用户名

        命令:git config --global user.name

      7、设置全局用户邮箱

        命令:git config --global user.email "yourmail@xx.com"

      

      

  • 相关阅读:
    获取资源文件 r.drawable中的图片转换为drawable、bitmap
    Android 启动白屏或者黑屏闪现解决
    Android应用截图方法
    史上最全的变量、作用域和内存问题
    RunLoop总结:RunLoop的应用场景(四)
    poj3436 ACM Computer Factory, 最大流,输出路径
    android开发——从相冊中选择图片不裁剪
    <html>
    poj3073
    poj 2482 Stars in Your Window (线段树扫描线)
  • 原文地址:https://www.cnblogs.com/h--d/p/11183911.html
Copyright © 2020-2023  润新知