3
Git for windows能夠使用Windows身份驗證(NTLM)進行身份驗證:在詢問用戶憑據時,只需按Enter鍵兩次。git支持Windows身份驗證。但如何在沒有用戶交互的情況下使用它?
C:\Program Files (x86)\CruiseControl.NET\server\MyGitProject>git clone http://cgdlyovm0161:8080/tfs/TAHAA/DT_FWK_GIT/_git/Cegid.Net%20Trunk WorkingDirectory
Cloning into 'WorkingDirectory'...
Username for 'http://cgdlyovm0161:8080':
Password for 'http://cgdlyovm0161:8080':
remote:
remote: fTfs
remote: fSSSSSSSs
remote: fSSSSSSSSSS
remote: TSSf fSSSSSSSSSSSS
remote: SSSSSF fSSSSSSST SSSSS
remote: SSfSSSSSsfSSSSSSSt SSSSS
remote: SS tSSSSSSSSSs SSSSS
remote: SS fSSSSSSST SSSSS
remote: SS fSSSSSFSSSSSSf SSSSS
remote: SSSSSST FSSSSSSFt SSSSS
remote: SSSSt FSSSSSSSSSSSS
remote: FSSSSSSSSSS
remote: FSSSSSSs
remote: FSFs (TM)
remote:
remote: Microsoft (R) Visual Studio (R) Team Foundation Server
remote:
Receiving objects: 100% (11908/11908), 165.99 MiB | 10.75 MiB/s, done.
Resolving deltas: 100% (5227/5227), done.
Checking connectivity... done.
但是...如何跳過用戶憑據請求?即部分
Username for 'http://cgdlyovm0161:8080':
Password for 'http://cgdlyovm0161:8080':
這裏的目的是使用當前用戶的憑據,沒有任何既不互動也沒有任何配置文件。
偉大的問題。不幸的是,即使是git-credential-winstore幫手也不會保存空的用戶名/密碼,並且在這種情況下不起作用。 – 2014-11-06 14:57:18