# Unable to sync to Pavlovia for the first time 'On branch master nothing to commit, working tree clean'

**URL:** <https://discourse.psychopy.org/t/unable-to-sync-to-pavlovia-for-the-first-time-on-branch-master-nothing-to-commit-working-tree-clean/41393>\
**Category:** Online experiments\
**Tags:** pavlovia\
**Created:** [September 13, 2024, 11:02am UTC](https://discourse.psychopy.org/t/unable-to-sync-to-pavlovia-for-the-first-time-on-branch-master-nothing-to-commit-working-tree-clean/41393 "2024-09-13T11:02:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![niranjanrajesh](https://avatars.discourse-cdn.com/v4/letter/n/e68b1a/32.png) [@niranjanrajesh](https://discourse.psychopy.org/u/niranjanrajesh)\
**Post date:** [September 13, 2024, 11:02am UTC](https://discourse.psychopy.org/t/unable-to-sync-to-pavlovia-for-the-first-time-on-branch-master-nothing-to-commit-working-tree-clean/41393/1 "2024-09-13T11:02:23Z")

</div>

Hello, I am trying to sync my first PsychoPy experiment to Pavlovia. I am encountering an error in my first sync . I even deleted the gitlab repository and created a new project but the same error persists. This is the error message I get on the runner:  
Traceback (most recent call last):

File “D:\Program Files\lib\site-packages\psychopy\app\builder\builder.py”, line 1612, in onPavloviaSync  
pavlovia\_ui.syncProject(parent=self, file=self.filename, project=self.project)  
File “D:\Program Files\lib\site-packages\psychopy\app\pavlovia\_ui\project.py”, line 854, in syncProject  
project.sync()  
File “D:\Program Files\lib\site-packages\psychopy\projects\pavlovia.py”, line 912, in sync  
self.firstPush(infoStream=infoStream)  
File “D:\Program Files\lib\site-packages\psychopy\projects\pavlovia.py”, line 1149, in firstPush  
info = self.commit(  
File “D:\Program Files\lib\site-packages\psychopy\projects\pavlovia.py”, line 1308, in commit  
info = self.repo.git.commit(‘-m’, message)  
File “D:\Program Files\lib\site-packages\git\cmd.py”, line 986, in   
return lambda \*args, \*\*kwargs: self.\_call\_process(name, \*args, \*\*kwargs)  
File “D:\Program Files\lib\site-packages\git\cmd.py”, line 1598, in \_call\_process  
return self.execute(call, \*\*exec\_kwargs)  
File “D:\Program Files\lib\site-packages\git\cmd.py”, line 1388, in execute  
raise GitCommandError(redacted\_command, status, stderr\_value, stdout\_value)  
git.exc.GitCommandError: Cmd(‘D:\Program Files\MinGit\cmd\git.exe’) failed due to: exit code(1)  
cmdline: D:\Program Files\MinGit\cmd\git.exe commit -m Push initial project files  
stdout: ‘On branch master  
nothing to commit, working tree clean’

Any help would be appreciated

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [September 13, 2024, 12:32pm UTC](https://discourse.psychopy.org/t/unable-to-sync-to-pavlovia-for-the-first-time-on-branch-master-nothing-to-commit-working-tree-clean/41393/2 "2024-09-13T12:32:24Z")

</div>

Hi. Here are some threads that might help

> [@HTTP 500 error on initial git push](https://discourse.psychopy.org/t/http-500-error-on-initial-git-push/41100):
>
> OS (e.g. Win10): macOS 14.6.1 PsychoPy version (e.g. 1.84.x): 2024.2.1 Standard Standalone? (y/n) If not then what?: y What are you trying to achieve?: I’m trying to do an initial push of my project to Pavlovia - it’s a copy of an existing project but I regenerated the .js file and removed the hidden .git folder to upload it as a new project. What did you try to make it work?: I tried both clicking the sync button to create the project and clicked the “create new project” button. In both …

> [@Unhandled internal error pushing to Pavlovia](https://discourse.psychopy.org/t/unhandled-internal-error-pushing-to-pavlovia/40293):
>
> Psychopy v. 2024.1.5 Internal error when pushing project to Pavlovia. I ran into this problem with 2024.1.4 and hoped the update would solve it to no avail: Traceback (most recent call last): File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\builder\builder.py”, line 1608, 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 syncProjec…

> [@Recreating project every time I sync to pavlovia](https://discourse.psychopy.org/t/recreating-project-every-time-i-sync-to-pavlovia/14884):
>
> URL of experiment: [Sign in · GitLab](https://gitlab.pavlovia.org/RLCusiac/experiment-day-1) Description of the problem: Hi! I had programmed an experiment with sound files that worked fine until two days ago. Now I’m getting loads of errors. I tried to uninstall and reinstall psychopy and resyncing to pavlovia and deleting everything to start afresh and now I think I just made everything worse. Every time I syncing my project to pavlovia, it asks to recreate a project and when I try to sync, it says: When trying to the command prompt for …

---

<div class="post-metadata">

**Author:** ![Saso](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/saso/32/42624_2.png) [@Saso](https://discourse.psychopy.org/u/Saso)\
**Post date:** [September 13, 2024, 1:37pm UTC](https://discourse.psychopy.org/t/unable-to-sync-to-pavlovia-for-the-first-time-on-branch-master-nothing-to-commit-working-tree-clean/41393/3 "2024-09-13T13:37:57Z")

</div>

Hello!

Psychopy is giving me an error warning when I’m trying to upload my experiment to Pavlovia. I already searched the forum but nothing helped.  
Moreover: Another experiment in the same folder runs completely fine on Pavlovia and I had no issues uploading it.

The message from psychopy is:

Traceback (most recent call last):  
File “C:\Users\saras\AppData\Local\Programs\PsychoPy\lib\site-packages\psychopy\app\builder\builder.py”, line 1612, in onPavloviaRun  
self.onPavloviaSync()  
File “C:\Users\saras\AppData\Local\Programs\PsychoPy\lib\site-packages\psychopy\app\builder\builder.py”, line 1608, in onPavloviaSync  
pavlovia\_ui.syncProject(parent=self, file=self.filename, project=self.project)  
File “C:\Users\saras\AppData\Local\Programs\PsychoPy\lib\site-packages\psychopy\app\pavlovia\_ui\project.py”, line 854, in syncProject  
project.sync()  
File “C:\Users\saras\AppData\Local\Programs\PsychoPy\lib\site-packages\psychopy\projects\pavlovia.py”, line 873, in sync  
self.firstPush(infoStream=infoStream)  
File “C:\Users\saras\AppData\Local\Programs\PsychoPy\lib\site-packages\psychopy\projects\pavlovia.py”, line 1110, in firstPush  
info = self.commit(  
File “C:\Users\saras\AppData\Local\Programs\PsychoPy\lib\site-packages\psychopy\projects\pavlovia.py”, line 1269, in commit  
info = self.repo.git.commit(‘-m’, message)  
File “C:\Users\saras\AppData\Local\Programs\PsychoPy\lib\site-packages\git\cmd.py”, line 638, in   
return lambda \*args, \*\*kwargs: self.\_call\_process(name, \*args, \*\*kwargs)  
File “C:\Users\saras\AppData\Local\Programs\PsychoPy\lib\site-packages\git\cmd.py”, line 1183, in \_call\_process  
return self.execute(call, \*\*exec\_kwargs)  
File “C:\Users\saras\AppData\Local\Programs\PsychoPy\lib\site-packages\git\cmd.py”, line 983, in execute  
raise GitCommandError(redacted\_command, status, stderr\_value, stdout\_value)  
git.exc.GitCommandError: Cmd(‘C:\Users\saras\AppData\Local\Programs\PsychoPy\MinGit\cmd\git.exe’) failed due to: exit code(1)  
cmdline: C:\Users\saras\AppData\Local\Programs\PsychoPy\MinGit\cmd\git.exe commit -m Push initial project files  
stdout: ‘On branch master  
nothing to commit, working tree clean’

Please help
