mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-11 03:57:29 +00:00
19 lines
772 B
PowerShell
19 lines
772 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"
|
|
|
|
# Disable GCM machine-wide
|
|
[Environment]::SetEnvironmentVariable("GCM_INTERACTIVE", "Never", [System.EnvironmentVariableTarget]::Machine)
|
|
|
|
Add-MachinePathItem "C:\Program Files\Git\mingw64\bin"
|
|
Add-MachinePathItem "C:\Program Files\Git\usr\bin"
|
|
Add-MachinePathItem "C:\Program Files\Git\bin"
|
|
exit 0
|