I'm using NetBeans to develop a project in Java. Whenever my mate tries to push what he has done, it shows the error:
HEAD is detached in the repository [repo_name]
When I go to the Repository Browser
in his program it shows that no branch is selected, but I can't solve that problem, we've already tried many ways, including using the cmd from git, but we can't sync it with the NetBeans project.