EMZETT.
Login

Git: fatal: not a git repository

In short: There is no Git repository in the current folder.

In more detail: Git finds no .git folder.

In Depth

Possible causes

  • In the wrong directory.
  • Repository not initialised.

Solutions

  1. Check pwd and switch to the project.
  2. Create a repository with git init or git clone.

See also: Git, GitHub