Git for windows is able to authenticate using windows authentication (NTLM): just press enter twice when asked for user credentials.
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.
But.. How to skip the request for user credentials?, i.e. the part
Username for 'http://cgdlyovm0161:8080':
Password for 'http://cgdlyovm0161:8080':
The aim here is to use the credentials of the current user, without neither any interaction nor any configuration file.
The answer was obvious.
git clone http://:@cgdlyovm0161:8080/tfs/TAHAA/DT_FWK_GIT/_git/Cegid.Net%20Trunk WorkingDirectory
Notice the :@
token between http:// and the hostname.