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).
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.