< Back
Set-GitPath
Post
NAME Set-GitPath
SYNOPSIS
Sets the path for Windows OS for Git.exe installations. Note this
script requires an elevated session (runas admin).
SYNTAX
Set-GitPath [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Sets the path for Windows OS Git.exe installations
looking at $env:PATH checking for "$env:ProgramFiles\\Git\\cmd"
to be in the path. This functions requires the session to be
running under elevated privileges.
PARAMETERS
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
Position? named
Default value
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
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Set-Path
RELATED LINKS
SYNOPSIS
Sets the path for Windows OS for Git.exe installations. Note this
script requires an elevated session (runas admin).
SYNTAX
Set-GitPath [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Sets the path for Windows OS Git.exe installations
looking at $env:PATH checking for "$env:ProgramFiles\\Git\\cmd"
to be in the path. This functions requires the session to be
running under elevated privileges.
PARAMETERS
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
Position? named
Default value
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
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Set-Path
RELATED LINKS