< Back
Push-ToAzureDevOps
Post
NAME Push-ToAzureDevOps
SYNOPSIS
Clones the current git repo to a AzureDevOps project.
SYNTAX
Push-ToAzureDevOps [[-Repository] <String>] [[-Account] <String>] [[-Project] <String>] [<CommonParameters>]
DESCRIPTION
Calling Push-ToAzureDevOps will clone your git repo to a AzureDevOps project. If you don't specify a project it
will try to use the default one.
If no default project is configure it will error. You must run this command from inside of your git repo folder.
PARAMETERS
-Repository <String>
The repository name to use. Can be inherited from a config file.
Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Account <String>
The acount name to use. Can be inherited from a config file.
If your AzureDevOps url is hello.visualstudio.com then this value should be hello.
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Project <String>
The project name to use. Can be inherited from a config file.
Required? false
Position? 3
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:\\>Push-ToAzureDevOps
This will look for a git repo in the current directory and try to find an already configured project/account.
It will then create a repo in that project and push to it.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Push-ToAzureDevOps -Project MyProject -Account MyAccount
Finds a git repo in current directory and adds it to the given account/project
RELATED LINKS
about_PsAzureDevOps
SYNOPSIS
Clones the current git repo to a AzureDevOps project.
SYNTAX
Push-ToAzureDevOps [[-Repository] <String>] [[-Account] <String>] [[-Project] <String>] [<CommonParameters>]
DESCRIPTION
Calling Push-ToAzureDevOps will clone your git repo to a AzureDevOps project. If you don't specify a project it
will try to use the default one.
If no default project is configure it will error. You must run this command from inside of your git repo folder.
PARAMETERS
-Repository <String>
The repository name to use. Can be inherited from a config file.
Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Account <String>
The acount name to use. Can be inherited from a config file.
If your AzureDevOps url is hello.visualstudio.com then this value should be hello.
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Project <String>
The project name to use. Can be inherited from a config file.
Required? false
Position? 3
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:\\>Push-ToAzureDevOps
This will look for a git repo in the current directory and try to find an already configured project/account.
It will then create a repo in that project and push to it.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Push-ToAzureDevOps -Project MyProject -Account MyAccount
Finds a git repo in current directory and adds it to the given account/project
RELATED LINKS
about_PsAzureDevOps