+2 votes
in General by (11k points)

When I run the git command git log -1 --pretty=format:"%ai %h",  it give the following error:

fatal: Not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

1 Answer

0 votes
by (15.1k points)

It seems that your .git folder is gone. Try to run "git init" and also make sure none of your subdirectories have their own .git folder.

...