For the complete documentation index, see llms.txt. This page is also available as Markdown.

Sync-PSUGit

Commits and pushes changes to a Git repository.

SYNOPSIS

Commits and pushes changes to a Git repository.

SYNTAX

Sync-PSUGit [-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>] [-UseDefaultCredentials]
 [-Integrated] [-TrustCertificate] [-Cookies] [<CommonParameters>]

DESCRIPTION

Commits and pushes changes to a Git repository.

EXAMPLES

Example 1

PS C:\> Sync-PSUGit

Commits and pushes changes to a Git repository.

PARAMETERS

-AppToken

The AppToken that is used for calling the PowerShell Universal Management API. You can also call Connect-PSUServer before calling this cmdlet to set the AppToken for the entire session.

-ComputerName

Specifies the computer name or URL that should be called when accessing the PowerShell Universal Management API. You can also use Connect-PSUServer before calling this cmdlet to set the computer name for the entire session.

-Credential

The credentials to use when accessing the PowerShell Universal Management API. You can also use Connect-PSUServer before calling this cmdlet to set the credentials for the entire session.

-Integrated

Executes the command internally rather than using the Management API. Only works when running script from within PowerShell Universal.

-TrustCertificate

Whether the cmdlet should ignore certificate issues.

-UseDefaultCredentials

Uses the current Windows credentials when authenticating to the management API.

-Cookies

Reuses and persists authentication cookies for the current PowerShell session.

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

System.Object

NOTES

Last updated

Was this helpful?