+2 votes
in General IT Tips by (71.8k 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

+1 vote
by (353k points)
selected by
Best answer

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.

Related questions