Set-PSUGitSetting
SYNOPSIS
Sets git settings.
SYNTAX
Set-PSUGitSetting -Settings <GitSettings> [-Branch <String>] [-Remote <String>]
[-SyncBehavior <GitSyncBehavior>] [-ExternalGit] [-Mode <GitMode>] [-Interval <Int32>]
[-GitCredential <PSCredential>] [-ProxyUrl <String>] [-ComputerName <String>] [-AppToken <String>]
[-Credential <PSCredential>] [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
[<CommonParameters>]DESCRIPTION
Sets git settings.
EXAMPLES
Example 1
PS C:\> Set-PSUGitSetting -Remote 'https://github.com/ironmansoftware/something.git' -Branch 'main'Sets the remote and branch for git settings.
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.
-Branch
The branch to use for git settings.
-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 connecting to the PowerShell Universal server.
-ExternalGit
Whether to use an external git client.
-GitCredential
The credentials to use when connecting to the git server.
-Integrated
Executes the command internally rather than using the Management API. Only works when running script from within PowerShell Universal.
-Interval
The interval to run git syncs.
-Mode
The mode to use for git settings.
-ProxyUrl
The proxy URL to use when connecting to git repository.
-Remote
The remote to use for git settings.
-SyncBehavior
The sync behavior to use for git settings.
-TrustCertificate
Whether the cmdlet should ignore certificate issues.
-UseDefaultCredentials
Whether to use default credentials when connecting to PowerShell Universal. Requires Windows authentication to be enabled.
-Settings
The settings to set for git.
-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
RELATED LINKS
PERMISSIONS
The access token requires settings.git/update to run this cmdlet remotely.
Last updated
Was this helpful?