Can't switch to other branch from Master

I have this problem with several Git repositories. It doesn’t matter which tooling i use. (Gitlab, Github, Bitbucket) that when i clone a Git repository i cannot switch branches.

I have a REF project and added it to git. At that point i have a Master branch. I create a develop branch from the master branch.
So 2 branches at this point. I only want to work with the develop branch and only merge to master when i have a new release.

When i open uipath studio it always opens the master branch. Ok, no problem i should say. When i want to switch to the other branch the problem starts. I get a message that i should commit my changes first. I have not made any changes to the project, because i just opened it. So i can’t undo them.
Trying to switch branch:
I cannot undo changes, because i didn’t made them. And i don’t want to commit to the master branch.

The branches i have present

So at this point the whole git project cannot be changed in Uipath Studio and i am forced to work on the master branch, which actually is not an option.

I do not always have this problem when i work alone on a project. I have it most (if not all) the time when working in a team on a project.
A colleague has an older or newer activity present. When i open the project, the dependencies will be checked and it can cause that the cache or project.json gets edited. In this case it is even the Main.xaml. At that point the master branch is out of sync and i cannot switch to the develop branch anymore. At that point the repository becomes useless for me. It causes me to have to switch back to a Gitclient (sourcetree) to be able to switch branches again (and after that open the project when the correct branch is selected

If anyone else is having this issue/problem please let me know if you have any solution for this. An ignore file isn’t a real solution, because i also have this problem on the Main.xaml

I like the Git functionality, but at this point it is too buggy and unreliable which forces me to stay working with SourceTree or another Git client.


Can you try with git bash to see what is the change made?

I will see if i can collect some data on that. Because at home im on community edition. At work i am on the enterprise studio.
The main problem is that i would like to select the branch i want to work on BEFORE the project files are opened in Studio. We never work in the master branch.

With a client you clone the repo, checkout the branch and then open those files.

1 Like


Were you able to find a solution on this ?

Hi @vishnuvarthanp
No solution yet. I still have this problem. I can’t swith in Uipath from one branch to the other. So i still use a gitclient to swith to the preferred branch and then open the project in UiPath. I have more issues with local branches and remote branches (you can delete a remote branch, but it will still be visable in Uipath).

So at this point i don’t use the Git functionality in Uipath studio. It is too buggy for me

I just started working with GIT in UiPath Studio, and have the same issue. I can’t switch branches because some files get updated while being copied to my machine. Here is the error message:


When I try to undo those changes, UiPath Studio crashes:


Is there any solution to this problem so far? Or will I have to checkout a needed branch in GIT bash first and then open it in Studio? This is really unfortunate, as I really would like to have all functionality in one place.

Haven’t used git features of UiPath much. Try this.
Add .local to .gitignore file.

Hi @KannanSuresh, thanks for your suggestion. Where can I find that file?

Another question is - how important is .locals folder? Does it impact bot functionality in any way?

.gitignore is a file that you create in the git folder to exclude certain files or folders from version control. The file should be placed in the root folder of the git repository.

You can read more about .gitignore from the link below.

As far as I understand the .local folder contents get auto generated when you open the process using UiPath. So, I believe it should be ok to ignore files in .local folder from version control. You could test this by creating a copy of your project locally and then delete the .local folder and see if it still works. Note: .local folder is hidden by default, so you must make hidden folders visible to see it.