Reset GitHubConfiguration - X-Guardian/PowerShellForGitHub GitHub Wiki

Reset-GitHubConfiguration

SYNOPSIS

Clears out the user's configuration file and configures this session with all default configuration values.

SYNTAX

Reset-GitHubConfiguration [-SessionOnly] [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

Clears out the user's configuration file and configures this session with all default configuration values.

This would be the functional equivalent of using this on a completely different computer.

The Git repo for this module can be found here: http://aka.ms/PowerShellForGitHub

EXAMPLES

EXAMPLE 1

Reset-GitHubConfiguration

Deletes the local configuration file and loads in all default configuration values.

PARAMETERS

-SessionOnly

By default, this will delete the location configuration file so that all defaults are used again. If this is specified, then only the configuration values that were made during this session will be discarded.

Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

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

INPUTS

OUTPUTS

NOTES

This command will not clear your authentication token. Please use Clear-GitHubAuthentication to accomplish that.

RELATED LINKS

⚠️ **GitHub.com Fallback** ⚠️