Save-GitSetup
July 14, 2026 ยท View on GitHub
SYNOPSIS
Download the latest 64bit version of Git for Windows.
SYNTAX
Save-GitSetup [[-Path] <String>] [-ARM64] [-PassThru] [<CommonParameters>]
DESCRIPTION
Non-Windows platforms have package management that make it easy to install newer versions of git. This command is for Windows platforms where tools like winget are not an option. You can run this command to download the latest 64bit or ARM64 standalone setup file of Git for Windows. You will need to manually install it.
EXAMPLES
Example 1
PS C:\> Save-GitSetup -Path c:\work -PassThru
Directory: C:\work
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a--- 7/8/2026 11:49 AM 65449488 Git-2.55.0.2-64-bit.exe
PS C:\> Save-GitSetup -Path D:\temp -ARM64 -Verbose
VERBOSE: [11:53:49.2899082 BEGIN ] Starting Test-IsPSWindows
VERBOSE: [11:53:49.2901318 END ] Ending Test-IsPSWindows
VERBOSE: Getting latest version of git from https://git-scm.com/install/windows
VERBOSE: WebRequest: v1.1 GET https://git-scm.com/install/windows
VERBOSE: WebResponse: 200 OK with text/html payload
VERBOSE: Downloading ARM64
...
VERBOSE: File Name: Git-2.55.0.2-arm64.exe
VERBOSE: Download complete
Downloading the ARM64 setup file.
PARAMETERS
-PassThru
Show the downloaded file.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Path
Specify the location to store the downloaded file.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 0
Default value: $env:TEMP
Accept pipeline input: False
Accept wildcard characters: False
-ARM64
Download the ARM64 standalone version
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
None
OUTPUTS
None
System.IO.FileInfo
NOTES
Learn more about PowerShell: https://jdhitsolutions.com/yourls/newsletter