| external help file | PSScriptTools-help.xml |
|---|---|
| Module Name | PSScriptTools |
| online version | https://jdhitsolutions.com/yourls/42ce51 |
| schema | 2.0.0 |
Download the latest 64bit version of Git for Windows.
Save-GitSetup [[-Path] <String>] [-ARM64] [-PassThru] [<CommonParameters>]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.
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.exePS 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 completeDownloading the ARM64 setup file.
Show the downloaded file.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseSpecify 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: FalseDownload the ARM64 standalone version
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Learn more about PowerShell: https://jdhitsolutions.com/yourls/newsletter