
az repos create -name FabrikamAppĬopy the clone URL from the remote URL attribute in the JSON output. git add -allĬreate a new Git repo in Azure Repos for your code. Ĭommit your code into the local Git repo. You will connect this repo to Azure Repos in the next section. Navigate to the folder where your code is on the command line: cd /home/fabrikam/fiberĬreate a Git repo on your machine to store your code. If your code is already in a local Git repo, you can skip this step. Create your local repoĬreate a local Git repo for your code. Refer to the list of install commands for the most up to date instructions for your Linux distribution. For example, on Ubuntu: sudo apt-get install git Use your distribution's package management system to download and install Git. For more information, see theįor seamless commanding, set the organization and project as defaults in configuration.Īz devops configure -defaults organization= project=contosoĭownload and install Git for Windows, which includes the Git Credential Manager to

Otherwise, you need to open aīrowser page and follow the instructions on the command line to enter an authorization code after navigating to If the CLI can open your default browser, it will do so and load a sign-in page. You must have at least v2.0.49, which you can verify with az -version command.Īdd the Azure DevOps Extension az extension add -name azure-devops Each organization includes free, unlimited private Git repositories.ĭownload and install Azure CLI and add Azure DevOps extension If you don't have an organization, you can sign up for one for free.

The instructions below use the default bash shell used on Linux and macOS, but the Git commands will work in any shell, including Git Bash from Git for Windows.
#How to use git bash on mac how to#
This guide shows you how to share your code in a Git repo in Azure Repos using the command line. Azure DevOps Services | Azure DevOps Server 2020
