How Do You Use Azure Repositories?

Problem scenario
You want to use Git in an Azure Repository. What do you do?

Prerequisites
You have a Linux VM with Git installed.

Procedures
1. Log into Azure.
2. Go to https://dev.azure.com/
3. Click on "New Project"
4. Enter a project name. For your first project, you should probably have "Project visibility" set to "Private."
5. For the prompt "What service would you like to start with?" Choose "Repos".
6. You should see the project name and at the top of the page it will say "is empty." Click "Generate Git Credentials".
7. You will see a username and password. You will only get one opportunity to store this password. Copy it now.
8. Copy the HTTPS URL for your Git repository.
9. Go to your server with Git. Run these commands:

git clone https://URL_COPIED_FROM_ABOVE
cd
date > file.txt
git add .
git commit -m "Added a file"
git push origin master

Leave a comment

Your email address will not be published. Required fields are marked *