Azure Repos is a set of version control tools that you can use to manage your code. Whether your software project is large or small, using version control as soon as possible is a good idea. Version control systems are software that helps you track changes you make in your code over time.
Things we will cover in this post:
- Create a Project in Azure DevOps
- Push our Code to the Azure Repo
Things we will not cover:
- Azure DevOps Services features and Pricing – It is free to use for Individuals. To know more about the services and pricing, visit here.
- Features of Azure Repo – To learn more about its features, visit here. The most important thing is, it provides unlimited private git repositories.
Create Project in Azure DevOps
First, we need to create a project, then only we can create a repo. There can be multiple repos in a single project. After you log in to Azure DevOps, select your Organization. The organization is auto-created when you sign up. You can create more organizations.
A single Organization can have multiple projects and a single project can have multiple repos. I have created two organizations. One of them is created by default.
If you are coming for the first time to this portal, you will be asked to create a new project on the home screen. For returning users, you will see your projects listed.
Give a name for your project, select the visibility and create the project. When the project is created, you will land up in a similar dashboard as below.
In the left side menu, click on Repos. A default repository is auto-created, you can select from the top menu. Once you select, it will give instructions to Push existing repos or import a repo or clone.
It will say that, your repo is empty.
Now, let us go ahead and add some code from the UiPath Studio.
Push your Code to the Azure Repo
I hope you have the project or code changes ready in the UiPath Studio to be pushed to Azure Repo. You will have a similar project structure like this for REF projects or you might have created just a single process.
Right-click on the project -> Add To Source Control ->
Select the root folder of your project to create a local GIT repository.
With this, the Commit Changes dialog window will open with a + sign against each of the files and folder. This represents, a new file or folder is found within your project which is not committed.
If this dialog window does not open it for you, you can just right click on the project and click on
We give a Commit Message. I will give as “
Initial Commit” and click on
Commit and Push. This will open a
Manage Remotes dialog window.
Give any name for your remote repo. The URL can be found from the Azure DevOps repo.
When you have given the name and the URL, click on Add.
This will come under Manage Remotes -> Remote Repositories. Click on
You will be prompted to enter the credentials.
You can generate the Git Credentials from the Azure Repo.
Copy the credentials and enter it in the UiPath Studio.
When you have entered the creds, click on OK.
With this, all your changes are pushed to the Azure DevOps Repository.
This was the initial commit, we saw. When you make any changes to the code. You will see an orange pen symbol appearing against the file.
To push this change, right click on the project -> Click on Commit.
Give a commit message and click on
Commit and Push.
That is it. The changes are now reflected in the Azure Repo.