kan*_*nna 7 git bash git-config
export GIT_CONFIG=<file>我一直在尝试在 shell 脚本中使用 git 配置文件。但未使用文件中的设置。我的目标是对所有后续 git 命令使用文件中的设置。
如果设置位于全局配置文件中,则正在使用它们。
从使用中GIT_TRACE=1我发现它GIT_CONFIG正在被取消设置。
做git clone unset GIT_CONFIG?
run-command.c:646 trace: run_command: unset GIT_CONFIG GIT_PREFIX; GIT_DIR=.git git clone --no-checkout --separate-git-dir \
Run Code Online (Sandbox Code Playgroud)
使用的 Git 版本:2.17.1
| 归档时间: |
|
| 查看次数: |
635 次 |
| 最近记录: |