zoukankan      html  css  js  c++  java
  • Git CMD

    命令参数

    --get

    获取指定的配置项。

    --global

    对于写选项:全局配置,将参数配置于 ~/.gitconfig 而不是仓库目录下的 .git/config。对于读选项:只从 ~/.gitconfig 文件中读取配置。

    --local

      对于写选项:将参数配置于 仓库目录下的 .git/config,这是默认的设置。

    -l, --list

      列出配置文件中的所有配置项。

    配置文件

    如果没有显示地指定 --file 选项,则有 4 个文件供 git 配置查询配置项。

    $(prefix)/etc/gitconfig

    全系统的配置文件

    ~/.gitconfig

    用户特定的配置文件,也称为全局配置文件。

    $XDG_CONFIG_HOME/git/config

    用户特定的次要的配置文件。如果 $XDG_CONFIG_HOME 没有设置或者为空,$HOME/.config/git/config 会被替代。

    $GIT_DIR/config

    仓库特定的配置文件。

    实例

    a) 设置用户名与用户邮件 ID

    $ git config --global user.name "huey"
    $ git config --global user.email "huey@example.com"

    b) 设置颜色高亮

    $ git config --global color.ui true

    c) 列出当前的配置选项

    $ git config --list

    更多

    http://git-scm.com/docs/git-config

  • 相关阅读:
    持续集成概念
    性能测试,负载测试,压力测试有什么区别
    安全测试
    接口测试及常用接口测试工具
    python-Csv 实战
    Python3 + Appium学习链接
    python-Txt实践
    python-ddt实践
    保险--总结
    selenium与页面的交互
  • 原文地址:https://www.cnblogs.com/huey/p/5088067.html
Copyright © 2011-2022 走看看