如何通过命令行参数覆盖Git配置选项? [英] How do I override Git configuration options by command line parameters?
本文介绍了如何通过命令行参数覆盖Git配置选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我使用命令行参数直接调用Git命令时,我想覆盖某些Git配置选项(在我的情况下为 http.proxy
)。
I want to override certain Git configuration options (in my case http.proxy
) when calling a Git command directly by using command line parameters. Is this possible?
推荐答案
是的,您可以使用 -c
,例如:
Yes, you can pass it with -c
, like:
git -c http.proxy=someproxy clone https://github.com/user/repo.git
这篇关于如何通过命令行参数覆盖Git配置选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文