How to fix fatal: This operation must be run in a work tree in Git | DevErrors