We always want to keep a track of everything that we do and version control is something that can help us with that.
Version control is a system that records changes to a file or set of files over time so that you can recall specific versions later.
And it can also be handy while working on a larger project and where the work has to be shared between a huge team
Let’s look at the GIT integration with UiPath…!!!
Step 1:
Create a GIT hub account at
https://github.com/
Step 2:
Now try creating a new repository by clicking on the plus icon and by selecting “New Repository” option
Step 3:
Now enter the name of the repository that you want to create and then click on “create repository”
Step 4:
Now let us connect our GIT account with the UiPath Studio.
In the “Team” tab, select “Clone a GIT repository” as shown below and start entering the “Repository URL” that you have just created and provide a local path directory to clone it to with remote GIT repository.
And finally, provide your login credentials (.i.e User and password)
Step 4:
After cloning a GIT repository to a local working directory, the .git
subdirectory is created containing the necessary GIT metadata as shown below
Step 5:
Now create a simple UiPath workflow (ex: Hello World) and perform a left click on the project and you should be able to see the following options
Some commonly used actions are:
-
Commit: Commits current changes to the local GIT repository.
-
Push: Pushes the current version onto the remote repository.
-
Manage Branches: Helps us in managing the added branches.
-
Show Changes: Helps us in comparing the difference between local and remote versions.
-
Show History: Gives the version change information.
Step 6:
Once you’re done with the implementation OR changes, try to commit the changes by selecting commit option
Now, a window appears which displays the unversioned files which can be pushed to remote GIT repository along with a “Commit Message”
Finally, you can either select the “Commit and Push” option or simply “Commit” option, and it totally depends on your requirement.
Step 7:
Finally, we can see it being uploaded to our remote GIT repository 🙂
Step 8:
Want to disconnect it?
No worries!!!
Just go to “Team” option and click on “Disconnect” under the GIT section and that’s all, it will be disconnected.
Hope it has helped you…
how to enable git by default for all projects in uipath?
It actually depends totally on the project structure
Because once we have our repository created…
We can create our projects in it and then there will be no need of enabling git everytime !!
From which UiPath version the Git is available ?