Skip to content

Instantly share code, notes, and snippets.

@ngbrown
Created January 10, 2024 17:44
Show Gist options
  • Select an option

  • Save ngbrown/482f239b59ad7eeac10159b6863003bc to your computer and use it in GitHub Desktop.

Select an option

Save ngbrown/482f239b59ad7eeac10159b6863003bc to your computer and use it in GitHub Desktop.

Revisions

  1. ngbrown created this gist Jan 10, 2024.
    9 changes: 9 additions & 0 deletions download-git-powershell.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    To download Git with PowerShell:

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

    ```ps1
    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
    ```