Don’t delete your repository
I know it can be frustrating when there are synchronisation errors between your local PsychoPy folder and its GitLab repository, but please resist the temptation to delete the repository on GitLab and start again. The main reasons to avoid this are:
- It often doesn’t solve the issue.
- You will have to find and delete the local git files and folders.
- There is a risk that you will accidentally delete all of your projects or even all of your group’s projects.
- You will lose the commit history.
A better approach is to sync the GitLab repository to a new local folder.
- Ensure you are logged into Pavlovia in PsychoPy Builder and search for projects.
- Search for the project you want to restore
- Click on the folder icon at the right of Local root and navigate to a new local folder. If you know your repository is up to date you can delete your old local folder at the same time.
- Press Download
- Check the Pavlovia tab of the PsychoPy Runner for progress.
- Close the “search for projects online” window and open the psyexp file in the new folder.
- If you want to replace this psyexp file with one you have been working on locally, open the newer psyexp file from the broken folder, save it into the new folder and then reopen it.
- Move any missing/updated resources from the broken folder into the new folder.
- Resync.
If these steps fail, check that you can sync a new simple experiment to a new repository. If not, then you might need to edit or remove some of your configuration files, such as:
C:\Users\userName\AppData\Roaming\psychopy3\appData.cfg
or
C:\Users\userName\AppData\Roaming\psychopy3\pavlovia\users.json