git config 常用命令

Git config是一个用于设置Git配置变量的命令,它可以控制Git的外观和行为1。Git config管理的常用命令有以下几种:

git config --global user.email <email>:设置全局的邮箱地址,用于标识你的提交2。

git config --global core.editor <editor>:设置全局的编辑器,用于编辑提交信息或配置文件2。

git config --global color.ui auto:设置全局的颜色输出,用于美化命令行界面2。

git config --list:列出所有的配置变量和值2。

git config <name>:获取指定的配置变量的值2。

git config --add <name> <value>:添加一个新的配置变量和值2。

git config --replace-all <name> <value>:替换所有匹配的配置变量和值2。

git config --unset <name>:删除指定的配置变量和值2。

复制代码
hl@ser02:~/tmp$ git config --global  --unset   url.https://github.com/.insteadof
hl@ser02:~/tmp$ git config --list
user.name=widdupomiapje
user.email=widdupomiapje@gmail.com
core.gitproxy=git-proxy
hl@ser02:~/tmp$

git如何配置代理:

通过配置 Git Proxy 加速克隆 Github 项目 :: George's Blog

相关推荐
极限实验室3 小时前
搜索百科(1):Lucene —— 打开现代搜索世界的第一扇门
搜索引擎·lucene
阿里云大数据AI技术9 小时前
StarRocks 助力数禾科技构建实时数仓:从数据孤岛到智能决策
大数据
Lx35213 小时前
Hadoop数据处理优化:减少Shuffle阶段的性能损耗
大数据·hadoop
Elasticsearch17 小时前
平衡尺度:利用权重使倒数排序融合 (RRF) 更加智能
elasticsearch
武子康18 小时前
大数据-99 Spark Streaming 数据源全面总结:原理、应用 文件流、Socket、RDD队列流
大数据·后端·spark
阿里云大数据AI技术1 天前
大数据公有云市场第一,阿里云占比47%!
大数据
Lx3522 天前
Hadoop容错机制深度解析:保障作业稳定运行
大数据·hadoop
muyun28002 天前
Docker 下部署 Elasticsearch 8 并集成 Kibana 和 IK 分词器
elasticsearch·docker·容器
T06205142 天前
工具变量-5G试点城市DID数据(2014-2025年
大数据
向往鹰的翱翔2 天前
BKY莱德因:5大黑科技逆转时光
大数据·人工智能·科技·生活·健康医疗