I am trying to upgrade our Studio Version from 2022.10.4 to 2024.10.15 and I have GIT version control attached to our Automation projects.
I have a VM running 2022.10.4 and when I open one of our project, the GIT works fine and is connected.
However, when I open the same project on a new VM with 2024.10.15 installed, the GIT isn’t connected and is showing “Add to source control”. When I try “GIT init”, the following screenshot appears.
Bare in mind, the GIT connects fine when I open the project on any VM we have that has the 2022.10.4 version installed but since I have installed 2024.10.15 studio version on others, the following issue is occuring.
Can I get some assistance on how to fix this? As GIT is super useful and I don’t want to reset the connections if possible.
I want to mention that all our projects are on a Shared network drive that all our VM service accounts have access to. Previously on the old version, any of our Bot VMs can open the project and the GIT is connected. It’s just since upgrading to a new version for example say on our “BOT1” vm, this error is happening. Could the reinstall of the new studio version have different GIT setting to the older studio version?
Thanks
In UiPath Studio versions from 2024 onwards (and other modern development tools), the Git library includes a security check to verify who owns the repository folder. If your repo lives on a shared network drive, Git cannot always confirm that the current Windows user owns that path.
In UiPath Studio 2022, this check was either not present or not enforced as strictly, so shared drive repos worked more easily across users and VMs.
You can tell Git to always consider your shared directory to be “safe” for all users. Add the safe.directory line in the global Git config.
Follow below steps, that might resolve your issue:
Open Command Prompt as your service account (BOT1) on your VM.
Run this command (replace Z:\Shared\UiPathProjects with your actual path):
git config --global --add safe.directory "Z:\Shared\UiPathProjects"
# OR for all directories (less secure but easy for shared drive environments)
git config --global --add safe.directory '*'
This will make Git (and UiPath Studio 2024+) treat this folder as trusted, resolving the error.
Restart UiPath Studio and try to open the project again.
Note that:
This approach is widely used for companies with network/shared folder setups and team accounts.
You must do this for every VM and user running Studio, since the trust is per-user, per-machine.
It is not a UiPath Studio-specific change, but a security upgrade in Git/libgit2, which Studio now uses more strictly since version 2024.
Its not good practice to use project from shared folders that can cause conflicts
If aready in shared folders whats the point of git ideally you need to have git setup for each machine via studio so that you dont have any conflicts
As epr error looks like there are differences in versions to confirm try to create new project and connect to git separately and see from local if you are able to connect..if yes then thats the issue