Skip to content

Instantly share code, notes, and snippets.

@ngbrown
Created January 10, 2024 17:44
Show Gist options
  • Save ngbrown/482f239b59ad7eeac10159b6863003bc to your computer and use it in GitHub Desktop.
Save ngbrown/482f239b59ad7eeac10159b6863003bc to your computer and use it in GitHub Desktop.
Downloading Git for Windows PowerShell

To download Git with PowerShell:

Get most recent version URL from https://git-scm.com/download/win

cd "${env:USERPROFILE}\Downloads"
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;
$ProgressPreference = 'SilentlyContinue';Invoke-WebRequest -Uri https://github.com/git-for-windows/git/releases/download/v2.43.0.windows.1/Git-2.43.0-64-bit.exe -OutFile Git-2.43.0-64-bit.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment