< Back
Add-Git
Post
NAME Add-Git
SYNOPSIS
Installs Git-for-Windows.
SYNTAX
Add-Git [[-InstallPath] <String>] [<CommonParameters>]
DESCRIPTION
Installs Git-for-Windows (https://gitforwindows.org/) on a
Windows machine. Installs latest 64-bit version. Install location
is C:\\Program Files\\Git (default).
This software is copyright New Context Security and open sourced
under the MIT License, 2019 version. See more details
at https://opensource.org/licenses/MIT . Author:
Kevin Buchs.
PARAMETERS
-InstallPath <String>
Parent directory under which you want Git installed. Default is
"C:\\Program Files"
Required? false
Position? 1
Default value C:\\Program Files
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
OUTPUTS
A few logging messages via Write-Host and a potential Write-Error
NOTES
Full example:
Add-Git
# Add git binary paths to PATH variable and get gitting
$env:PATH += ";c:\\program files\\git\\bin;c:\\program files\\git\\usr\\bin"
git clone http://repo.example.com
RELATED LINKS
https://github.com/newcontext-oss/add-git
https://gitforwindows.org/
https://newcontext.com
SYNOPSIS
Installs Git-for-Windows.
SYNTAX
Add-Git [[-InstallPath] <String>] [<CommonParameters>]
DESCRIPTION
Installs Git-for-Windows (https://gitforwindows.org/) on a
Windows machine. Installs latest 64-bit version. Install location
is C:\\Program Files\\Git (default).
This software is copyright New Context Security and open sourced
under the MIT License, 2019 version. See more details
at https://opensource.org/licenses/MIT . Author:
Kevin Buchs.
PARAMETERS
-InstallPath <String>
Parent directory under which you want Git installed. Default is
"C:\\Program Files"
Required? false
Position? 1
Default value C:\\Program Files
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
OUTPUTS
A few logging messages via Write-Host and a potential Write-Error
NOTES
Full example:
Add-Git
# Add git binary paths to PATH variable and get gitting
$env:PATH += ";c:\\program files\\git\\bin;c:\\program files\\git\\usr\\bin"
git clone http://repo.example.com
RELATED LINKS
https://github.com/newcontext-oss/add-git
https://gitforwindows.org/
https://newcontext.com