I want to override certain Git config options (in my case http.proxy
) when calling a Git command directly by using command line parameters. Is this possible?
相关问题
- Why does recursive submodule update from github fa
- Extended message for commit via Visual Studio Code
- Grails External Configuration. Can't access to
- Emacs shell: save commit message
- Can I organize Git submodules in a flat hierarchy?
相关文章
- 请教Git如何克隆本地库?
- GitHub:Enterprise post-receive hook
- Git Clone Fails: Server Certificate Verification F
- SSIS solution on GIT?
- Is there a version control system abstraction for
- ssh: Could not resolve hostname git: Name or servi
- Cannot commit changes with gitextensions
- git: retry if http request failed
Note that there is a new feature regarding the ability to override (with the command
git -c
) a config:You couldn't set a config to an empty string (
git -c http.proxy=
or any otherfoo.bar=
), that is until git 2.1.2 (Sept 30th, 2014), and commit a789ca7 Junio C Hamano (gitster
)config: teach "
git -c
" to recognize an empty stringYes, you can pass it with
-c
, like: