how to fix atal: not a git repository (or any of the parent directories): .git code example
Example: fatal: Not a git repository (or any of the parent directories): .git
# fatal: Not a git repository (or any of the parent directories): .git
#you are trying to create .git into Not a git repository
git init # it will Initialized empty Git repository.
#after that type git command