美文网首页
Git-03: 使用Git的最小配置

Git-03: 使用Git的最小配置

作者: WenxuanLi | 来源:发表于2019-04-01 21:40 被阅读0次

李文轩 2019-02-07
声明:这是本人学习极客时间的Git三剑客的笔记,有侵权请联系我。


添加配置:

$ git config [--local|--global|--system] user.name 'Your name'
$ git config [--local|--global|--system] user.email 'Your email'

查看配置:

$ git config --list [--local|--global|--system]

各层级区别:

  • local: 紧限当前仓库
  • global (最常出现): 当前用户的所有仓库
  • system: 本系统的所有用户
  • local config 比 global 有更高优先级;在配置 global 后,在某一仓库里配置 local 的话,系统会优先采取 local 配置

清理配置

$ git config --unset --local user.name
$ git config --unset --global user.name
$ git config --unset --system user.name

相关文章

  • Git-03: 使用Git的最小配置

    李文轩 2019-02-07声明:这是本人学习极客时间的Git三剑客的笔记,有侵权请联系我。 添加配置: 查看配置...

  • Git 学习笔记

    Git个人 安装git 如何安装 Git? 使用git之前需要做的最小化配置 常用配置 一般选择global即可 ...

  • git常见的场景和对应的命令

    一、使用git前需要做的最小配置 1、设置user.name和user.email git config --gl...

  • Git基本使用命令

    Git配置 Git最小配置 配置全局账户,该账户对所有Git仓库都有效 配置局部账户,该账户对当前Git仓库有效 ...

  • git笔记01

    git最小配置 git config --global user.name xxx git config --gl...

  • Git最小配置

    Git的三个作用域 $git config --local 只针对某个仓库有效$git config --gl...

  • git三剑客学习笔记

    一、最小配置 git config --local 针对某个仓库git config --global 针对当前...

  • Git学习笔记一:基本命令

    1. 多使用git help命令来获取git工具的帮助文档 2. 创建仓库及最小配置 3. 暂存区与commit ...

  • git

    git 配置 使用git bash

  • Git常用命令

    学无止境,厚积薄发 整理于苏玲老师Git教程Git官方文档Git官方Book 一、Git最小配置二、查看Git的配...

网友评论

      本文标题:Git-03: 使用Git的最小配置

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