返回命令列表

Linux command

az-repos 命令

文本

Copy it and replace filenames, paths, or keywords as needed.

命令示例

List all repositories

az repos list --project [MyProject]

Show details

az repos show --repository [MyRepo] --project [MyProject]

Create a new repository

az repos create --name [MyRepo] --project [MyProject]

Clone a repository

az repos show --repository [MyRepo] --project [MyProject] --query remoteUrl

Delete a repository

az repos delete --id [repo-id] --project [MyProject]

List pull requests

az repos pr list --project [MyProject]

Create a pull request

az repos pr create --source-branch [feature] --target-branch [main] --title [My PR] --project [MyProject]

Show pull request details

az repos pr show --id [pr-id]

说明

az repos manages Azure Repos, the Git repository hosting service in Azure DevOps. It provides commands for managing repositories, pull requests, branches, and policies. This is part of the Azure DevOps CLI extension and works with Azure DevOps Services.

FAQ

What is the az-repos command used for?

az repos manages Azure Repos, the Git repository hosting service in Azure DevOps. It provides commands for managing repositories, pull requests, branches, and policies. This is part of the Azure DevOps CLI extension and works with Azure DevOps Services.

How do I run a basic az-repos example?

Run `az repos list --project [MyProject]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more az-repos examples?

This page includes 8 examples for az-repos, plus related commands for nearby Linux tasks.