Hi Team,
I am facing an issue with a UiPath Studio project connected to GitHub. The project is very large and contains many workflows/test cases. While doing Git pull/rebase from UiPath Studio, the operation got stuck/hung. After checking from PowerShell, Git showed a rebase in progress and many untracked files under the .objects folder.
Example git status output showed:
rebase in progress; onto <commit-id>
You are currently rebasing branch 'main'
Unmerged paths:
both modified: .entities/EntitiesStore.json
Untracked files:
.objects/.../.data/ObjectRepositoryScreenData/.hash
.objects/.../.data/ObjectRepositoryTargetData/.attributes/
.objects/.../.data/ObjectRepositoryTargetData/.hash
The .objects folder appears to be related to UiPath Object Repository. Some .objects files are tracked in Git, for example:
.objects/.../.metadata
.objects/.../.type
.objects/.../ObjectRepositoryTargetData/.content
.objects/.../ObjectRepositoryTargetData/.images/.design/...
But Studio also creates extra local/generated files like:
.objects/**/.hash
.objects/**/.attributes/
These files keep appearing as untracked after opening the project in UiPath Studio.
I tried aborting the rebase and resetting to an older commit. I also force-pushed the repository back to a known working commit. GitHub main is now restored correctly, but after opening Studio, Git status again shows local changes like:
modified: .project/design.json
Untracked files:
.objects/.../ObjectRepositoryScreenData/.hash
.objects/.../ObjectRepositoryTargetData/.attributes/
.objects/.../ObjectRepositoryTargetData/.hash
My questions are:
-
Are
.objects/**/.hashand.objects/**/.attributes/generated local files that should be ignored in Git? -
Is it safe to add these patterns to
.gitignore?
.objects//.hash
.objects//.attributes/ -
Should the full
.objectsfolder be committed to Git when using UiPath Object Repository, or should it be treated as local cache?(“If i ignore it then all my object repos are getting deleted”) -
Why does UiPath Studio generate/modify Object Repository metadata during pull/opening the project?
-
What is the recommended Git strategy for UiPath projects using Object Repository to avoid pull/rebase conflicts and untracked
.objectsfiles?
Environment/context:
UiPath Studio project with GitHub integration
Large project with many XAML workflows/test cases
Object Repository is used
Git operations from Studio hang during pull/rebase mostly everyday so we are doing a lot of rework.
PowerShell Git operations show untracked .objects hash/attributes files
I want to understand the correct way to version control Object Repository files in UiPath and avoid these repeated Git conflicts/untracked files.
Thanks.