![]() Open the Git command window (Git Bash on Git for Windows), navigate to the folder where you want the code from the repo stored on your computer, and run git clone followed by the path copied from the Clone URL in the previous step, as shown in the following example. Select Clone in the upper-right corner of the Code window and copy the Clone URL. Use this relationship to interact with the existing repo, pushing and pulling changes to share code with your team. Cloning also downloads all commits and branches in the repo and sets up a named relationship with the repo on the server. Cloning a repo creates a complete local copy of the repo for you to work with. To work with a Git repo, you clone it to your computer. You can clone the repo using the Clone link on the upper right of the page to get working with a local copy of the repo immediately. You'll now see an overview of the files in your repo. For naming restrictions, see Naming restrictions, Azure Repos (git). In the Create a new repository dialog, verify that Git is the repo type and enter a name for your new repo. In the Project area in the web portal, select Code, then select the drop-down next to the current repo name and choose New Repository. You can select it from the All projects list, or from the Recent projects list at the top if you've accessed it recently. Navigate to your project by browsing to and selecting the name of your project. ![]()
0 Comments
Leave a Reply. |