I am using the Git features of Ui Path to work on files with my team. I am trying to figure out if I am using it correctly, or if there is a glitch in how it works. I tried the following.
Create Git project
Create Branch for Git project called Test1
In another UiPath studio setup the same project from Git.
Create branch for Git project called Test2
be sure to make a change in each branch (Or they wont update to the git.
At this point I have the same git project open with two different branches (and main). The problem I am having is the branches seem to stay with each local file for the git project. Computer 1 always has Test1 and Computer 2 always has Test2 on it. When I look in Git GitLab in this case I can see both branches. If in GitLab I merge and delete all merged branches the branches in studio never go away. Am I missing something? If I delete the project folder on the local drive and re pull the entire project all of the branches show up (given I did not delete them).
If I add or remove any branches I have to delete the local files and re clone them. Is this a bug? or am I doing something wrong?
I set test1 on computer 1 and test 2 in computer2 … both show up in git… if you delete both in git they will not be removed from the project.(unless you delete all local files and then pull the entire project from git again)
I will do some testing this weekend, i also have some other issues with git (from uipath studio) which i want to address. I will test your problem too. Keep you posted
Git: Create a repository in Git (Bitbucket or Gitlab)
Git: Create a master branch
Studio1: Clone repository
Studio1: Create local branch Test1 (do some changes) and push to Git
Studio2: Clone repository
Studio2: Create local branch Test2 (do some changes) and push to Git
At this point there are 3 branches visable in Git
Master, Test1, Test2
Git: Merge Test1 into master and delete the Test1 branch (origin/Test1)
No when you open Studio1 you still see origin/Test1 present, which does not exists anymore in Git.
So in my opinion, studio does not check the remote repository for changes. The origin/Test1 should not be visable anymore.
I can delete old local branches, but the origin branches should be updated automaticly.
@LeftBrainCo If you still see the Test1 in your studio, that is normal behavior, because that is a local branch. You can have multiple local branches, but they don’t have to be visable in Git. Only when you push them they will be visable as origin/branchName.
@loginerror, where can i address features/bugs like this?
Do you mean origin/master or origin/… don’t update in your studio? Try to be a bit more specific what you mean, so i know where you are (in git or in studio).
I did some more test because after reading the responses I felt like maybe I did miss something. It looks like when I pushed I was only pushing the master, and so per @jvanmarion 's notes it seems I was keeping the branches local and never actually posting them.
Update: just checked If you delete branches from git they do not get removed from studio. Even after a merge.
I deleted these from git after a merge leaving only orgin/master
orgin/test1
orgin/test2
orgin/test3
I deleted
test1
test2
test3
locally in uipath
still have no matter what I try to do I have these in the branch manager. These references to the git repository branches that are not local, that do not exist.
orgin/test1
orgin/test2
orgin/test3
@jvanmarion you are correct in saying “So in my opinion, studio does not check the remote repository for changes. The origin/Test1 should not be visable anymore.
I can delete old local branches, but the origin branches should be updated automaticly.”
I would also add you cannot remove these from studio as far as I can tell.
I created a bug. Thank you for helping me find the best scenario to report. I was having an issue figuring out exactly what I did the first time to reproduce. This conversation made my report a lot more accurate than it would have been if I had submitted it without your input!
@LeftBrainCo
You’re welcome. I like the possibility of Git in Uipath Studio, but it’s far from stable to use in live situations in my opinion. We still use our git clients instead of Studio. Bugs like this are quite annoying. I haven’t heard back from @loginerror where we can post bugs like this.