New-GitHubRepository¶
SYNOPSIS¶
Create a repository for a user or an organization.
SYNTAX¶
Create a repository for the authenticated user (Default)¶
New-GitHubRepository -Name <string> [-AddReadme] [-Gitignore <string>] [-License <string>]
[-Visibility <string>] [-Description <string>] [-Homepage <uri>] [-IsArchived <bool>]
[-IsTemplate <bool>] [-WebCommitSignoffRequired <bool>] [-DefaultBranch <string>] [-HasWiki <bool>]
[-HasIssues <bool>] [-HasSponsorships <bool>] [-HasDiscussions <bool>] [-HasProjects <bool>]
[-AllowMergeCommitWith <string>] [-AllowSquashMergingWith <string>] [-AllowRebaseMerging <bool>]
[-SuggestUpdateBranch <bool>] [-AllowAutoMerge <bool>] [-DeleteBranchOnMerge <bool>]
[-EnableAdvancedSecurity <bool>] [-EnableCodeSecurity <bool>] [-EnableSecretScanning <bool>]
[-EnableSecretScanningPushProtection <bool>] [-EnableSecretScanningAIDetection <bool>]
[-EnableSecretScanningNonProviderPatterns <bool>] [-Context <Object>] [-WhatIf] [-Confirm]
[<CommonParameters>]
Create a repository from a template to an organization¶
New-GitHubRepository -Organization <string> -Name <string> -TemplateOwner <string>
-TemplateRepository <string> [-IncludeAllBranches] [-Visibility <string>] [-Description <string>]
[-Homepage <uri>] [-IsArchived <bool>] [-IsTemplate <bool>] [-WebCommitSignoffRequired <bool>]
[-DefaultBranch <string>] [-HasWiki <bool>] [-HasIssues <bool>] [-AllowForking <bool>]
[-HasSponsorships <bool>] [-HasDiscussions <bool>] [-HasProjects <bool>]
[-AllowMergeCommitWith <string>] [-AllowSquashMergingWith <string>] [-AllowRebaseMerging <bool>]
[-SuggestUpdateBranch <bool>] [-AllowAutoMerge <bool>] [-DeleteBranchOnMerge <bool>]
[-EnableAdvancedSecurity <bool>] [-EnableCodeSecurity <bool>] [-EnableSecretScanning <bool>]
[-EnableSecretScanningPushProtection <bool>] [-EnableSecretScanningAIDetection <bool>]
[-EnableSecretScanningNonProviderPatterns <bool>] [-Context <Object>] [-WhatIf] [-Confirm]
[<CommonParameters>]
Fork a repository to an organization¶
New-GitHubRepository -Organization <string> -ForkOwner <string> -ForkRepository <string>
[-Name <string>] [-IncludeAllBranches] [-Description <string>] [-Homepage <uri>]
[-IsArchived <bool>] [-IsTemplate <bool>] [-WebCommitSignoffRequired <bool>]
[-DefaultBranch <string>] [-HasWiki <bool>] [-HasIssues <bool>] [-AllowForking <bool>]
[-HasSponsorships <bool>] [-HasDiscussions <bool>] [-HasProjects <bool>]
[-AllowMergeCommitWith <string>] [-AllowSquashMergingWith <string>] [-AllowRebaseMerging <bool>]
[-SuggestUpdateBranch <bool>] [-AllowAutoMerge <bool>] [-DeleteBranchOnMerge <bool>]
[-EnableAdvancedSecurity <bool>] [-EnableCodeSecurity <bool>] [-EnableSecretScanning <bool>]
[-EnableSecretScanningPushProtection <bool>] [-EnableSecretScanningAIDetection <bool>]
[-EnableSecretScanningNonProviderPatterns <bool>] [-Context <Object>] [-WhatIf] [-Confirm]
[<CommonParameters>]
Create a repository in an organization¶
New-GitHubRepository -Organization <string> -Name <string> [-AddReadme] [-Gitignore <string>]
[-License <string>] [-Visibility <string>] [-Description <string>] [-Homepage <uri>]
[-IsArchived <bool>] [-IsTemplate <bool>] [-WebCommitSignoffRequired <bool>]
[-DefaultBranch <string>] [-HasWiki <bool>] [-HasIssues <bool>] [-AllowForking <bool>]
[-HasSponsorships <bool>] [-HasDiscussions <bool>] [-HasProjects <bool>]
[-AllowMergeCommitWith <string>] [-AllowSquashMergingWith <string>] [-AllowRebaseMerging <bool>]
[-SuggestUpdateBranch <bool>] [-AllowAutoMerge <bool>] [-DeleteBranchOnMerge <bool>]
[-EnableAdvancedSecurity <bool>] [-EnableCodeSecurity <bool>] [-EnableSecretScanning <bool>]
[-EnableSecretScanningPushProtection <bool>] [-EnableSecretScanningAIDetection <bool>]
[-EnableSecretScanningNonProviderPatterns <bool>] [-Context <Object>] [-WhatIf] [-Confirm]
[<CommonParameters>]
Fork a repository to a user¶
New-GitHubRepository -ForkOwner <string> -ForkRepository <string> [-Name <string>]
[-IncludeAllBranches] [-Description <string>] [-Homepage <uri>] [-IsArchived <bool>]
[-IsTemplate <bool>] [-WebCommitSignoffRequired <bool>] [-DefaultBranch <string>] [-HasWiki <bool>]
[-HasIssues <bool>] [-HasSponsorships <bool>] [-HasDiscussions <bool>] [-HasProjects <bool>]
[-AllowMergeCommitWith <string>] [-AllowSquashMergingWith <string>] [-AllowRebaseMerging <bool>]
[-SuggestUpdateBranch <bool>] [-AllowAutoMerge <bool>] [-DeleteBranchOnMerge <bool>]
[-EnableAdvancedSecurity <bool>] [-EnableCodeSecurity <bool>] [-EnableSecretScanning <bool>]
[-EnableSecretScanningPushProtection <bool>] [-EnableSecretScanningAIDetection <bool>]
[-EnableSecretScanningNonProviderPatterns <bool>] [-Context <Object>] [-WhatIf] [-Confirm]
[<CommonParameters>]
Create a repository from a template to a user¶
New-GitHubRepository -Name <string> -TemplateOwner <string> -TemplateRepository <string>
[-IncludeAllBranches] [-Visibility <string>] [-Description <string>] [-Homepage <uri>]
[-IsArchived <bool>] [-IsTemplate <bool>] [-WebCommitSignoffRequired <bool>]
[-DefaultBranch <string>] [-HasWiki <bool>] [-HasIssues <bool>] [-HasSponsorships <bool>]
[-HasDiscussions <bool>] [-HasProjects <bool>] [-AllowMergeCommitWith <string>]
[-AllowSquashMergingWith <string>] [-AllowRebaseMerging <bool>] [-SuggestUpdateBranch <bool>]
[-AllowAutoMerge <bool>] [-DeleteBranchOnMerge <bool>] [-EnableAdvancedSecurity <bool>]
[-EnableCodeSecurity <bool>] [-EnableSecretScanning <bool>]
[-EnableSecretScanningPushProtection <bool>] [-EnableSecretScanningAIDetection <bool>]
[-EnableSecretScanningNonProviderPatterns <bool>] [-Context <Object>] [-WhatIf] [-Confirm]
[<CommonParameters>]
ALIASES¶
This cmdlet has the following aliases, {{Insert list of aliases}}
DESCRIPTION¶
Creates a new repository for a user or in a specified organization.
OAuth scope requirements
When using OAuth, authorizations must include:
public_reposcope orreposcope to create a public repository. Note: For GitHub AE, usereposcope to create an internal repository.reposcope to create a private repository
EXAMPLES¶
EXAMPLE 1¶
$params = @{
Name = 'Hello-World'
Description = 'This is your first repository'
Homepage = 'https://github.com'
HasIssues = $true
HasProjects = $true
HasWiki = $true
HasDiscussions = $true
IsTemplate = $true
AddReadme = $true
AllowSquashMerge = $true
AllowAutoMerge = $true
DeleteBranchOnMerge = $true
SquashMergeCommitTitle = 'PR_TITLE'
SquashMergeCommitMessage = 'PR_BODY'
}
New-GitHubRepository @params
Creates a new public repository named "Hello-World" owned by the authenticated user.
EXAMPLE 2¶
$params = @{
Organization = 'PSModule'
Name = 'Hello-World'
Description = 'This is your first repository'
Homepage = 'https://github.com'
HasIssues = $true
HasProjects = $true
HasWiki = $true
IsTemplate = $true
AddReadme = $true
AllowSquashMerge = $true
AllowAutoMerge = $true
DeleteBranchOnMerge = $true
SquashMergeCommitTitle = 'PR_TITLE'
SquashMergeCommitMessage = 'PR_BODY'
}
New-GitHubRepository @params
Creates a new public repository named "Hello-World" owned by the organization "PSModule".
EXAMPLE 3¶
$params = @{
TemplateOwner = 'GitHub'
TemplateRepository = 'octocat'
Organization = 'PSModule'
Name = 'MyNewRepo'
IncludeAllBranches = $true
Description = 'My new repo'
Visibility = 'Private'
}
New-GitHubRepository @params
Creates a new private repository named MyNewRepo from the octocat template repository owned by GitHub.
EXAMPLE 4¶
$params = @{
ForkOwner = 'octocat'
ForkRepo = 'Hello-World'
Organization = 'PSModule'
Name = 'MyNewRepo'
DefaultBranchOnly = $true
}
New-GitHubRepository @params
Creates a new repository named MyNewRepo as a fork of Hello-World owned by octocat.
Only the default branch will be forked.
PARAMETERS¶
-AddReadme¶
Pass true to create an initial commit with empty README.
Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Create a repository in an organization
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: Create a repository for the authenticated user
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-AllowAutoMerge¶
Whether to allow Auto-merge to be used on pull requests.
Type: System.Nullable`1[System.Boolean]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-AllowForking¶
Either true to allow private forks, or false to prevent private forks.
Type: System.Nullable`1[System.Boolean]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Create a repository in an organization
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: Create a repository from a template to an organization
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: Fork a repository to an organization
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-AllowMergeCommitWith¶
Allow merge commits for pull requests with the specified setting.
Type: System.String
DefaultValue: Default message
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-AllowRebaseMerging¶
Whether to allow rebase merges for pull requests.
Type: System.Nullable`1[System.Boolean]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-AllowSquashMergingWith¶
Allow squash merges for pull requests with the specified setting.
Type: System.String
DefaultValue: Default message
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Confirm¶
Prompts you for confirmation before running the cmdlet.
Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases:
- cf
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Context¶
The context to run the command in. Used to get the details for the API call. Can be either a string or a GitHubContext object.
Type: System.Object
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-DefaultBranch¶
Updates the default branch for this repository.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-DeleteBranchOnMerge¶
Whether to delete head branches when pull requests are merged
Type: System.Nullable`1[System.Boolean]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Description¶
A short description of the new repository.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-EnableAdvancedSecurity¶
Whether to enable GitHub Advanced Security for this repository.
Type: System.Nullable`1[System.Boolean]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-EnableCodeSecurity¶
Whether to enable code security for this repository.
Type: System.Nullable`1[System.Boolean]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-EnableSecretScanning¶
Whether to enable secret scanning for this repository.
Type: System.Nullable`1[System.Boolean]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-EnableSecretScanningAIDetection¶
Whether to enable secret scanning AI detection for this repository.
Type: System.Nullable`1[System.Boolean]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-EnableSecretScanningNonProviderPatterns¶
Whether to enable secret scanning non-provider patterns for this repository.
Type: System.Nullable`1[System.Boolean]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-EnableSecretScanningPushProtection¶
Whether to enable secret scanning push protection for this repository.
Type: System.Nullable`1[System.Boolean]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-ForkOwner¶
The account owner of the repository. The name is not case sensitive.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Fork a repository to an organization
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: Fork a repository to a user
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-ForkRepository¶
The name of the repository without the .git extension. The name is not case sensitive.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Fork a repository to an organization
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: Fork a repository to a user
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Gitignore¶
The desired language or platform to apply to the .gitignore.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Create a repository in an organization
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: Create a repository for the authenticated user
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-HasDiscussions¶
Whether discussions are enabled.
Type: System.Nullable`1[System.Boolean]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-HasIssues¶
Whether issues are enabled.
Type: System.Nullable`1[System.Boolean]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-HasProjects¶
Whether projects are enabled.
Type: System.Nullable`1[System.Boolean]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-HasSponsorships¶
Whether sponsorships are enabled.
Type: System.Nullable`1[System.Boolean]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-HasWiki¶
Whether the wiki is enabled.
Type: System.Nullable`1[System.Boolean]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Homepage¶
A URL with more information about the repository.
Type: System.Uri
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-IncludeAllBranches¶
Include all branches from the source repository.
Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Fork a repository to an organization
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: Fork a repository to a user
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: Create a repository from a template to an organization
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: Create a repository from a template to a user
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-IsArchived¶
Whether the repository is archived.
Type: System.Nullable`1[System.Boolean]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-IsTemplate¶
Whether this repository acts as a template that can be used to generate new repositories.
Type: System.Nullable`1[System.Boolean]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-License¶
The license keyword of the open source license for this repository.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Create a repository in an organization
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: Create a repository for the authenticated user
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Name¶
The name of the repository.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Fork a repository to an organization
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: Fork a repository to a user
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: Create a repository in an organization
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: Create a repository for the authenticated user
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: Create a repository from a template to an organization
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: Create a repository from a template to a user
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Organization¶
The account owner of the repository. The name is not case sensitive.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases:
- Owner
ParameterSets:
- Name: Create a repository from a template to an organization
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: Fork a repository to an organization
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: Create a repository in an organization
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-SuggestUpdateBranch¶
Whether to always suggest to update a head branch that is behind its base branch during a pull request.
Type: System.Nullable`1[System.Boolean]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-TemplateOwner¶
The account owner of the template repository. The name is not case sensitive.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Create a repository from a template to an organization
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: Create a repository from a template to a user
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-TemplateRepository¶
The name of the template repository without the .git extension. The name is not case sensitive.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Create a repository from a template to an organization
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: Create a repository from a template to a user
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Visibility¶
The visibility of the repository.
Type: System.String
DefaultValue: Public
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Create a repository from a template to a user
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: Create a repository from a template to an organization
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: Create a repository in an organization
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: Create a repository for the authenticated user
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-WebCommitSignoffRequired¶
Whether to require contributors to sign off on web-based commits.
Type: System.Nullable`1[System.Boolean]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-WhatIf¶
Runs the command in a mode that only reports what would happen without performing the actions.
Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases:
- wi
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
CommonParameters¶
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS¶
OUTPUTS¶
GitHubRepository¶
{{ Fill in the Description }}
NOTES¶
Create a repository for the authenticated user Create an organization repository