Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在构建服务器上运行 CCNet 服务来构建基于 Git 存储库的解决方案。Git 存储库受密码保护。有没有办法为源代码管理任务设置用户名和密码?
<sourcecontrol type="git"> </sourcecontrol>
方法一
如果您不关心安全性,请在 URL 字符串中嵌入密码
http://user:password@abcdef.com/abc/def.git
方法二
使用 git credential helper 存储用户名和密码(更安全)
msysgit 1.8.1 或更高版本:设置配置以启用内置 git-credential-wincred [credential] helper = wincred
或为旧版 msysgit 安装 git-credential-winstore