mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 06:08:07 +00:00
* 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
19 lines
685 B
PowerShell
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
|