文件种类

  • 仓库级别(当前仓库有效) local
  • 用户级别(当前用户有效) global
  • 系统级别(系统全局有效) system

系统级别的配置

  • git config --system user.name 'JiYu'
  • git config --system user.email 'jiyu_nh@163.com'
  • 配置信息会保存在 Git安装目录/etc/gitconfig 文件中

用户级别的配置

  • git config --global user.name 'JiYu'
  • git config --global user.email 'jiyu_nh@163.com'
  • 配置信息会保存在 C:\Users\Administrator 目录下的 .gitconfig 中

仓库级别的配置

  • git config user.name 'JiYu'
  • git config user.email 'jiyu_nh@163.com'
  • 配置信息会保存在当前仓库目录下的 .git/config 中

查看配置信息

git config --local -l

编辑配置文件

git config --local -e

最新文章

  1. 【Java之对象清理】finalize()的用途
  2. sql表和字段的别名
  3. java静态和动态代理原理
  4. 岁末年初3Q大战惊现高潮,360震撼推出Android "3Q" IM即时通讯
  5. NUnitForms 测试GUI应用程序的优秀工具
  6. Error when running Swift3 in REPL
  7. js中数组内置方法
  8. 【python常用模块】os.path
  9. hdu-4419-Colourful Rectangle-段树区,并寻求
  10. 洛谷 2634&&BZOJ 2152: 聪聪可可【点分治学习+超详细注释】
  11. Redis分布式锁的正确实现方式
  12. 1-5 hibernate学习笔记(11-14章)
  13. 试说明采用双缓冲技术如何进行I/O操作
  14. Linux应用调试 :使用gdb和gdbserver进行远程调试
  15. 阅读<构建之法>13、14、15、16、17章
  16. 【代码审计】QYKCMS_v4.3.2 前台存储型XSS跨站脚本漏洞分析
  17. centos/rhel 7 几个最重要变化(systemd,firewalld,networkmanager,文件系统)
  18. JavaScript 上万条数据 导出Excel文件(改装版)
  19. Virtual Machine Kernel Panic : Not Syncing : VFS : Unable To Mount Root FS On Unknown-Block (0,0)
  20. 001---CBV和restful规范

热门文章

  1. mybatis第一天02
  2. 启动Hive时报错(com.mysql.jdbc.Driver") was not found in the CLASSPATH)
  3. 获取table中CheckBox选中行的id
  4. 立即关机C++源码
  5. render(七)
  6. 1、安装gitlab
  7. python求极值点(波峰波谷)
  8. hdu1716--全排列(dfs+有重复数字+输出格式)
  9. adb server version (xx) doesn't match this client (xx); killing...
  10. 《TCP/IP入门经典》摘录--Part 3