Fix "fatal: not a git repository (or any of the parent directories): .git"
The current working directory (and all parent directories) does not contain a .git metadata directory. Git cannot track changes or execute commands without an initialized repository.
fatal: not a git repository (or any of the parent directories): .git
Quick Fix Checklist
- Check current directory: pwd (macOS/Linux) or cd (Windows)
- Navigate to correct project folder: cd my-project
- If starting a new project: Initialize with git init
- If cloning from GitHub: Run git clone <url> instead of manual download