2 [string
]$directory='git-sdk',
3 [string
]$url='https://github.com/git-for-windows/git-sdk-64/releases/download/ci-artifacts/git-sdk-x86_64-minimal.zip'
6 Invoke-WebRequest
"$url" -OutFile git-sdk
.zip
7 Expand-Archive
-LiteralPath git-sdk
.zip
-DestinationPath
"$directory"
8 Remove-Item -Path git-sdk
.zip
10 New-Item -Path
.git
/info
-ItemType Directory
-Force
11 New-Item -Path
.git
/info
/exclude
-ItemType File
-Force
12 Add-Content -Path
.git
/info
/exclude
-Value
"/$directory"