How to fix fatal: ambiguous argument 'HEAD~': unknown revision or path not in the working tree in Git | DevErrors