Git supports Windows authentication. but how to use it without user interaction?
Git to enable windows to authenticate with 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 do I skip the request for user credentials ?, that is the part
Username for 'http://cgdlyovm0161:8080':
Password for 'http://cgdlyovm0161:8080':
The goal here is to use the credentials of the current user without any interaction or any configuration file.
+3
source to share