Azure DevOps Services | Azure DevOps Server 2022 | Azure DevOps Server 2020
This guide shows you how to share your code in a Git repo in Azure Repos using the command line.
The instructions in this article use the default bash shell used on Linux and macOS, but the Git commands work in any shell, including Git Bash from Git for Windows.
- View code in private projects: At least Basic access. - Clone or contribute to code in private projects: Member of the Contributors security group or corresponding permissions in the project. - Set branch or repository permissions: Manage permissions permissions for the branch or repository. - Change default branch: Edit policies permissions for the repository. - Import a repository: Member of the Project Administrators security group or Git project-level Create repository permission set to Allow. For more information, see Set Git repository permissions.
In public projects, users with Stakeholder access have full access to Azure Repos, including viewing, cloning, and contributing to code.
Download and install Azure CLI and add Azure DevOps extension
Install the Azure CLI. At least v2.0.49, which you can verify with az --version command.
Add the Azure DevOps Extension az extension add --name azure-devops
Run the az login command.
If the CLI can open your default browser, it does so and loads a sign-in page. Otherwise, you need to open a browser page and follow the instructions on the command line to enter an authorization code after navigating to
https://aka.ms/devicelogin in your browser. For more information, see the
Azure CLI login page.
For seamless commanding, set the organization and project as defaults in configuration.
az devops configure --defaults organization=https://dev.azure.com/contoso project=contoso
Pievienojieties meetup sērijai, lai kopā ar citiem izstrādātājiem un ekspertiem izveidotu mērogojamus AI risinājumus, kuru pamatā ir reālas lietošanas gadījumi.
This certification measures your ability to accomplish the following technical tasks: Design and implement processes and communications, design and implement a source control strategy, design and implement build and release pipelines, develop a security and compliance plan, and implement an instrumentation strategy.