How to fix fatal: not a valid object name: branch-name in Git | DevErrors