Files
runner-images/images/win/scripts/Installers/Install-Git.ps1
Andy Mishechkin 7584c7b879 Add Hub installation (#529)
* Hub installation has been added

* Checking and documentation updating has been created

* Canges in hub version detection code

* GIT_LFS_PATH has been removed from hub version detection

* Copy-Past has been returned

* Refactoring for separate command checking
2020-03-16 10:52:13 +03:00

19 lines
685 B
PowerShell

################################################################################
## File: Install-Git.ps1
## Desc: Install Git for Windows
################################################################################
Import-Module -Name ImageHelpers
# Install the latest version of Git which is bundled with Git LFS.
# See https://chocolatey.org/packages/git
choco install git -y --package-parameters="/GitAndUnixToolsOnPath /WindowsTerminal /NoShellIntegration"
choco install hub
# Disable GCM machine-wide
[Environment]::SetEnvironmentVariable("GCM_INTERACTIVE", "Never", [System.EnvironmentVariableTarget]::Machine)
Add-MachinePathItem "C:\Program Files\Git\bin"
exit 0