%% Last Updated: - [[2021-03-29]] %% ## The error `fatal: not a git repository: data/v2/sprites/../../../.git/modules/data/v2/sprites` ## Causes and Solutions If you come across the error below when attempting to perform git commands, there are a few potential causes. - You're not in the right directory. `cd` to the right one. - This directory hasn't been initialized as a git repository. Do a `git init` or `git clone` command. - The git repository you cloned has submodules. Clone it again, but this time do it like this: `git clone [email protected]:nicolevanderhoeven/pokeapi.git --recurse-submodules`, where the flag `--recurse-submodules` means that you also want to dowload or clone the submodules that the repo depends on.