# Fatal error when uploading local psychopy experiment to Pavlovia

**URL:** <https://discourse.psychopy.org/t/fatal-error-when-uploading-local-psychopy-experiment-to-pavlovia/47888>\
**Category:** Online experiments\
**Created:** [September 14, 2026, 6:29pm UTC](https://discourse.psychopy.org/t/fatal-error-when-uploading-local-psychopy-experiment-to-pavlovia/47888 "2026-09-14T18:29:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sarah.vassall](https://avatars.discourse-cdn.com/v4/letter/s/cab0a1/32.png) [@sarah.vassall](https://discourse.psychopy.org/u/sarah.vassall)\
**Post date:** [September 14, 2026, 6:29pm UTC](https://discourse.psychopy.org/t/fatal-error-when-uploading-local-psychopy-experiment-to-pavlovia/47888/1 "2026-09-14T18:29:32Z")

</div>

**OS** : Windows 11  
**PsychoPy version** : 2025.1.1 Py 3.13  
**Standard Standalone Installation?** Yes  
**URL of experiment:** None yet  
**Do you want it to also run locally?** Unsure  
**What are you trying to achieve?** Upload Psychopy project to Pavlovia

**What did you try to make it work?** Use the “sync” button in the builder file, in line with instructions on Psychopy’s website.

**What specifically went wrong when you tried that?:**  
I made an experiment that runs perfectly on my local machine. We would like to eventually get this online, but I am brand new to Psychopy and Pavlovia and I’m running into difficulty. While I am able to compile my builder code to a JS file, I get the following error message when attempting to upload to a new project in Pavlovia. Interestingly, despite the below error, I do see an empty project appear in my dashboard in my Pavlovia account, which aligns with what I named the project while attempting to upload. However, there are no files in the project, just an empty folder. I believe there is an issue having to do with the last line copied below, but I do not know what the next step is to address this.

> Traceback (most recent call last):  
> File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\builder\builder.py”, line 1621, in onPavloviaSync  
> pavlovia\_ui.syncProject(parent=self, file=self.filename, project=self.project)  
> File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\pavlovia\_ui\project.py”, line 854, in syncProject  
> project.sync()  
> File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\projects\pavlovia.py”, line 910, in sync  
> if self.repo is None:  
> File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\projects\pavlovia.py”, line 1045, in repo  
> self.configGitLocal()  
> File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\projects\pavlovia.py”, line 1216, in configGitLocal  
> localConfig = self.repo.git.config(l=True, local=True) # list local  
> File “C:\Program Files\PsychoPy\lib\site-packages\git\cmd.py”, line 986, in  
> return lambda \*args, \*\*kwargs: self.\_call\_process(name, \*args, \*\*kwargs)  
> File “C:\Program Files\PsychoPy\lib\site-packages\git\cmd.py”, line 1599, in \_call\_process  
> return self.execute(call, \*\*exec\_kwargs)  
> File “C:\Program Files\PsychoPy\lib\site-packages\git\cmd.py”, line 1389, in execute  
> raise GitCommandError(redacted\_command, status, stderr\_value, stdout\_value)  
> git.exc.GitCommandError: Cmd(‘C:\Program Files\PsychoPy\MinGit\cmd\git.exe’) failed due to: exit code(128)  
> cmdline: C:\Program Files\PsychoPy\MinGit\cmd\git.exe config -l --local  
> stderr: **‘fatal: --local can only be used inside a git repository’**

---

<div class="post-metadata">

**Author:** ![InesJP](https://avatars.discourse-cdn.com/v4/letter/i/58956e/32.png) [@InesJP](https://discourse.psychopy.org/u/InesJP)\
**Post date:** [September 15, 2026, 9:30am UTC](https://discourse.psychopy.org/t/fatal-error-when-uploading-local-psychopy-experiment-to-pavlovia/47888/2 "2026-09-15T09:30:11Z")

</div>

Hi,

I have found others having the same error when linking projects to github: [How to Fix fatal: not a git repository Error in Git - Komodor](https://komodor.com/blog/solving-fatal-not-a-git-repository-error/).

If you have saved the project from the right folder, I think you should see a (maybe hidden) file named .gitignore in the folder where you have your project locally. If not, could it be that you have created a folder in Pavlovia but have not linked it to your file? I assume you have gone from your local file to the arrow by “no project”, and selected “new project” to link both.

You can also check in your experiment → experiment settings → online if the link matches your repository. If it does not, could you try to create a new Pavlovia project and delete the empty one?

If it were the folder that is corrupted, could you share a minimal reproducible example? Happy to try to figure it out!

Best,

Inés
