How do I override Git configuration options by command line parameters?

后端 未结 3 1994
面向向阳花
面向向阳花 2020-12-15 15:20

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 possi

3条回答
  •  旧时难觅i
    2020-12-15 15:57

    Yes, you can pass it with -c, like:

    git -c http.proxy=someproxy clone https://github.com/user/repo.git
    

提交回复
热议问题