Page 1 of 1

Error: path doesn't point at a valid Git Repository (v2020)

Posted: Tue Jan 17, 2023 3:41 am
by wevens

Hi,

Some time ago, I had problems with my NAS on which there seemed to be a folder ../PHPMaker/Backup. (I wasn't aware of that before).
All files in that folder have been removed due to this problem.

PHPMaker is installed locally on my PC, so that still works. But each time when I want to save my project, I got this error:

Path '\\...my documents...\PHPMaker\Backup' doesn't point at a valid Git repository or workdir.

Everything else works ok so far, so I can actually save the project and reopen it.

Any idea what this error means and how I could repair that?


Re: Error: path doesn't point at a valid Git Repository (v2020)

Posted: Tue Jan 17, 2023 10:07 am
by arbei

If you don't need to backup your project to a git repo (on Github), you should remove the advanced settings for Git, see Sharing Project with Other Users.


Re: Error: path doesn't point at a valid Git Repository (v2020)

Posted: Fri Jan 20, 2023 12:11 am
by wevens

I found the solution.

Note that I am using v2020.
As said, I had issues with my NAS so all files where erased. I was only able to restore folder structure.
So the .git-folder had all its subfolders, but no content.
After I removed the whole .git-folder and then saving my project again, everything was ok. The .git-folder was created automatically again including subfolders and content.