Git的基本使用 -- Git配置
2024-10-08 11:26:17
文件种类
- 仓库级别(当前仓库有效) 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
最新文章
- 【Java之对象清理】finalize()的用途
- sql表和字段的别名
- java静态和动态代理原理
- 岁末年初3Q大战惊现高潮,360震撼推出Android ";3Q"; IM即时通讯
- NUnitForms 测试GUI应用程序的优秀工具
- Error when running Swift3 in REPL
- js中数组内置方法
- 【python常用模块】os.path
- hdu-4419-Colourful Rectangle-段树区,并寻求
- 洛谷 2634&;&;BZOJ 2152: 聪聪可可【点分治学习+超详细注释】
- Redis分布式锁的正确实现方式
- 1-5 hibernate学习笔记(11-14章)
- 试说明采用双缓冲技术如何进行I/O操作
- Linux应用调试 :使用gdb和gdbserver进行远程调试
- 阅读<;构建之法>;13、14、15、16、17章
- 【代码审计】QYKCMS_v4.3.2 前台存储型XSS跨站脚本漏洞分析
- centos/rhel 7 几个最重要变化(systemd,firewalld,networkmanager,文件系统)
- JavaScript 上万条数据 导出Excel文件(改装版)
- Virtual Machine Kernel Panic : Not Syncing : VFS : Unable To Mount Root FS On Unknown-Block (0,0)
- 001---CBV和restful规范
热门文章
- mybatis第一天02
- 启动Hive时报错(com.mysql.jdbc.Driver";) was not found in the CLASSPATH)
- 获取table中CheckBox选中行的id
- 立即关机C++源码
- render(七)
- 1、安装gitlab
- python求极值点(波峰波谷)
- hdu1716--全排列(dfs+有重复数字+输出格式)
- adb server version (xx) doesn&#39;t match this client (xx); killing...
- 《TCP/IP入门经典》摘录--Part 3