Git for Windows
Property
Value
Overview
Why Git Is Useful for OSDeploy
Install with OSDeploy
Manual Installation
Related
Last updated
Was this helpful?
Git for Windows is a source control system for tracking changes to deployment scripts and configurations. OSDeploy installs it via winget and optionally configures the global Git identity.
Publisher
The Git Project
winget ID
Git.Git
Platform
Windows 11
Architecture
amd64 / arm64
Required by
Optional — script source control
Status
Current
Git for Windows provides the git command-line tool and a Bash environment on Windows. It integrates with GitHub, Azure DevOps, and any other Git host. After installation, Install-OSDeploySoftware will interactively prompt for a global user.email and user.name if they are not already configured, or walk through updating existing values.
Track changes to OSDeploy build scripts and PSCloudScript files across time
Push configuration to GitHub for sharing and collaboration
Enables pulling the latest scripts from a repository inside WinPE (with internet access)
Required if you use VS Code's built-in source control panel
Git for Windows is installed via winget. After installation, the function prompts for global Git identity configuration.
Preview (no changes made):
Install:
winget (App Installer) must be available. Install it from the Microsoft Store if it is not present. -DownloadOnly is not supported for winget-based components.
Install via winget:
Configure global Git identity after installation:
Verify the installation:
Visual Studio Code — integrated Git support
Last updated
Was this helpful?
Was this helpful?
Install-OSDeploySoftware -Name 'git'Install-OSDeploySoftware -Name 'git' -Forcewinget install --id Git.Git -e -h --accept-source-agreements --accept-package-agreementsgit config --global user.email 'you@example.com'
git config --global user.name 'Your Name'git --version
git config --global --list
