< Back

Restore-GitHubConfiguration

Sat Jan 18, 2020 9:40 pm

NAME Restore-GitHubConfiguration



SYNOPSIS

Sets the specified file to be the user's configuration file.





SYNTAX

Restore-GitHubConfiguration [[-Path] <String>] [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

Sets the specified file to be the user's configuration file.



This is primarily used for unit testing scenarios.



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





PARAMETERS

-Path <String>

The path to store the user's current configuration file.



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-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:\\>Restore-GitHubConfiguration -Path 'c:\\foo\\config.json'



Makes the contents of c:\\foo\\config.json be the user's configuration for the module.











RELATED LINKS