How to fix fatal: ref HEAD is not a symbolic ref in Git | DevErrors