use*_*457 7 git github jenkins
我在堆栈溢出上问了同样的问题,但我只得到了 5 次查看,我认为这是一个更好的论坛来解决这个问题。
我正在为托管在 github 上的私有仓库中的 C# 项目设置 CI。Git 安装在主 CentOS 机器上,MSBuild 安装在从属 Windows 上。
我已经在 github 上创建了帐户,并将其添加到我的私人仓库中。当我在 Jenkins 上设置源代码控制时,我输入了 URL(如https://github.com/.../repo.git)并使用新帐户输入凭据。
詹金斯报道:
Failed to connect to repository : Command "git config --local credential.helper store --file=/tmp/git2956041026506359040.credentials" returned status code 129:
stdout:
stderr: error: unknown option `local'
usage: git config [options]
Config file location
--global use global config file
--system use system config file
-f, --file <FILE> use given config file
Action
--get get value: name [value-regex]
--get-all get all values: key [value-regex]
--get-regexp get values for regexp: name-regex [value-regex]
--replace-all replace all matching variables: name value [value_regex]
--add adds a new variable: name value
--unset removes a variable: name [value-regex]
--unset-all removes all matches: name [value-regex]
--rename-section rename section: old-name new-name
--remove-section remove a section: name
-l, --list list all
-e, --edit opens an editor
--get-color <slot> find the color configured: [default]
--get-colorbool <slot>
find the color setting: [stdout-is-tty]
Type
--bool value is "true" or "false"
--int value is decimal number
--bool-or-int value is --bool or --int
--path value is a path (file or directory name)
Other
-z, --null terminate values with NUL byte
Run Code Online (Sandbox Code Playgroud)
如果我登录 master 并在 root 控制台上尝试相同的命令,我会得到同样的错误,--local 不是 git config 的选项。
归档时间: |
|
查看次数: |
6671 次 |
最近记录: |