如何通过脚本文件运行Git命令时提供凭据。就像我在git bash上运行git clone命令一样,它要求我输入用户名和密码。
Set WinScriptHost = CreateObject("WScript.Shell")
Set wshSystemEnv = WinScriptHost.Environment( "Process" )
wshSystemEnv("VALUE") = "C:\Program Files (x86)\Git\bin\"
WinScriptHost.CurrentDirectory = "E:\BitBucket\lpawarRepo"
Return = WinScriptHost.Run("git.exe add .", 0, true)
'Wscript.Echo "Checking out from git 1.."
Return = WinScriptHost.Run("git.exe clone -b Test-UNIFY-4-3-0-BRANCH https://gitlab.com:esom-enterprise/esom-enterprise-platform.git", 0, true)
Set WinScriptHost = Nothing