How to fix fatal: invalid reference: branch-name in Git | DevErrors