No git repository (git prune & git gc)

Hello, my project’s disk is full and when I try to use git prune or git gc, console returns:

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

Project name: moldupsite

Hello and welcome to the forum, @alputv!

Weird error! Do you get the same when you run git status at the prompt?

What can you see when you open the Tools → Rewind window in Glitch?

Q: Do you get the same when you run git status at the prompt?
A: I don’t, but I get another one:

On branch master
nothing to commit, working directory clean

Q: What can you see when you open the Tools → Rewind window in Glitch?
A: I can’t see the rewind of my project.