我在git中运行了一个全局配置命令,以使用.gitignore_global
文件排除某些文件:
git config --global core.excludesfile ~/.gitignore_global
是否有一种方法可以全局撤消此设置的创建?
发布于 2012-08-09 00:08:35
我不确定您所说的“撤销”更改是什么意思。您可以像这样删除core.excludesfile
设置:
git config --global --unset core.excludesfile
当然,您也可以简单地编辑配置文件:
git config --global --edit
...and然后手动删除该设置。
发布于 2018-05-07 00:30:02
您可以使用git config
的--unset
标志来执行此操作,如下所示:
git config --global --unset user.name
git config --global --unset user.email
如果一个配置有更多的变量,可以使用:
git config --global --unset-all user.name
发布于 2015-06-15 15:59:28
尝试从命令行更改git配置详细信息。
git config --global --replace-all user.name "Your New Name"
git config --global --replace-all user.email "Your new email"
https://stackoverflow.com/questions/11868447
复制相似问题