< Back
Git-ChangeUser
Post
NAME Git-ChangeUser
SYNOPSIS
This script changes user name or user email for the current or global repository
SYNTAX
Git-ChangeUser [[-RepositoryDirectory] <String>] [-UserName] <String> [-UserEmail] <String> [-Global] [[-Sleep]
<Int16>] [<CommonParameters>]
DESCRIPTION
PARAMETERS
-RepositoryDirectory <String>
Git repository root folder.
Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-UserName <String>
Desired user name.
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-UserEmail <String>
Desired user email.
Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Global [<SwitchParameter>]
Switch between local and global config
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-Sleep <Int16>
Use sleep if you wannt to add some dely before closing the powershell host.
Delay in seconds.
Required? false
Position? 4
Default value 0
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:\\>Git-ChangeUser -UserName "Miroslav Mikus" -UserEmail "Miroslav.Mikus@outlook.com"
RELATED LINKS
SYNOPSIS
This script changes user name or user email for the current or global repository
SYNTAX
Git-ChangeUser [[-RepositoryDirectory] <String>] [-UserName] <String> [-UserEmail] <String> [-Global] [[-Sleep]
<Int16>] [<CommonParameters>]
DESCRIPTION
PARAMETERS
-RepositoryDirectory <String>
Git repository root folder.
Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-UserName <String>
Desired user name.
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-UserEmail <String>
Desired user email.
Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Global [<SwitchParameter>]
Switch between local and global config
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-Sleep <Int16>
Use sleep if you wannt to add some dely before closing the powershell host.
Delay in seconds.
Required? false
Position? 4
Default value 0
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:\\>Git-ChangeUser -UserName "Miroslav Mikus" -UserEmail "Miroslav.Mikus@outlook.com"
RELATED LINKS