How to fix Fatal Not a Git repository error.
Introduction
In this tutorial, we will learn how to fix the following error: Fatal Not a Git repository (or any of the parent directories) error.
Error
The most probable root cause for this error is that when you run git commands
without creating a local repository.
Fix
To fix this issue, try to create a local
git repository.
/> git init
The .git folder is a hidden directory. We need to enable the show hidden folders/files option to view this directory.
Git Tutorial Links
https://www.testingdocs.com/git-tutorials/
For more information on Git tool, visit the official website: