No active branch while changes are present

Hi,

Just stumbled upon a bug when opening the GIT project in UiPath, yesterday everything was fine and my branch was selected but when I opened it today, there was no active branch.

First thing I decided to do was to change the branch, however then this error popped up.

However since there is no branch it was impossible to commit changes

I don’t know the steps to reproduce it since I haven’t done anything special between yesterday and today.

However it’s easy to fix:

  1. Open console in the project folder
  2. Checkout branch with git checkout <branch_name>