How to fix fatal: ref HEAD is not a symbolic ref, cannot determine current branch in Git | DevErrors