扫码关注官方订阅号
在本地用git init 新建了一个仓库。进行了一次commit操作以后用git log 看了一下commit的记录为什么会有用户名和邮箱信息??我全程没有关联过github也没有输入过邮箱等信息。那么这个信息是从哪里来的??(
走同样的路,发现不同的人生
你的电脑安装过github,sourcetree等工具的话 git在init时会去检索系统配置。
因为你以前git config --global user.[name|email]了,用户名和邮箱设陈成了全局变量,系统会默认采用。
git config --global user.[name|email]
git config
git config --global --listgit config --list
git config --global --list
git config --list
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
你的电脑安装过github,sourcetree等工具的话 git在init时会去检索系统配置。
因为你以前
git config --global user.[name|email]了,用户名和邮箱设陈成了全局变量,系统会默认采用。git config
git config --global --listgit config --list