sup*_*uan 3 git passwords cruisecontrol.net
我在构建服务器上运行 CCNet 服务来构建基于 Git 存储库的解决方案。Git 存储库受密码保护。有没有办法为源代码管理任务设置用户名和密码?
<sourcecontrol type="git">
</sourcecontrol>
Run Code Online (Sandbox Code Playgroud)
方法1
如果您不关心安全性,请在 URL 字符串中嵌入密码
http://user:password@abcdef.com/abc/def.git
Run Code Online (Sandbox Code Playgroud)
方法2
使用 git 凭证助手来存储用户名和密码(更安全)
msysgit 1.8.1 或更高版本:设置配置以启用内置 git-credential-wincred [credential] helper = wincred
或为旧版 msysgit 安装 git-credential-winstore