gpt4 book ai didi

git - 对于 Jenkins git 插件,建议在哪里运行 `git config` ?

转载 作者:太空狗 更新时间:2023-10-29 14:29:41 25 4
gpt4 key购买 nike

在 Jenkins 下,我遇到了 this thread 中描述的相同 longpaths 问题.

git config --system core.longpaths true解决方案应该可以为我解决问题(我还没有尝试过),但是……我应该把它放在哪里

答案是“您应该能够运行命令...或手动将其添加到您的 git 配置文件之一”——哪个 git 配置文件?

最佳答案

您可以按照 git documentation 中的描述将它放在四个文件中(安装 Jenkins 的地方) :

If not set explicitly with --file, there are four files where git config will search for configuration options:

$(prefix)/etc/gitconfig

System-wide configuration file.

$XDG_CONFIG_HOME/git/config

Second user-specific configuration file. If $XDG_CONFIG_HOME is not set or empty, $HOME/.config/git/config will be used. Any single-valued variable set in this file will be overwritten by whatever is in ~/.gitconfig. It is a good idea not to create this file if you sometimes use older versions of Git, as support for this file was added fairly recently.

~/.gitconfig

User-specific configuration file. Also called "global" configuration file.

$GIT_DIR/config

Repository specific configuration file.

关于git - 对于 Jenkins git 插件,建议在哪里运行 `git config` ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34768593/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com