Add-FilesToRepo#
SYNOPSIS#
Upload path to a repo in Azure DevOps.
SYNTAX#
Add-FilesToRepo [-CollectionUri] <String> [-RepoName] <String> [-ProjectName] <String> [-Path] <String>
[-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION#
Upload path to a repo in Azure DevOps. Only works if the repo isn't initialized yet.
EXAMPLES#
EXAMPLE 1#
$params = @{
CollectionUri = "https://dev.azure.com/contoso"
Name = "Repo 1"
ProjectName = "Project 1"
Path = "C:\git\BRC\AzureDevOpsPowerShellAPI"
}
Add-FilesToRepo @params
This example adds the files in the path to the repository
PARAMETERS#
-CollectionUri#
Collection Uri of the organization
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-RepoName#
Name of the repository to add files to
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-ProjectName#
Name of the project containing the repository where files need to be added
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 3
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-Path#
Name of the project where the new repository has to be created
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 4
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: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Confirm#
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ProgressAction#
{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
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.