Pavlovia GitLab SSH Access Completely Broken

Hi,

SSH does not work - there are a couple of threads in this forum already and Jon also recommends working with https.

Below my personal notes on how to upload and exp to Pavlovia and make updates. Note, I am working on Linux.

  1. Manual Upload to Gitlab/Pavlovia
    • When you create an exp locally make sure you compile to JS. This will create the necessary files such as the exp.js, index file, browser-legacy files e.t.c.
    • Visit https://gitlab.pavlovia.org/ and create an empty repository
    • Choose the option Create blank project. In this example I called it tutorial
    • Give it a name and press Create project at the bottom
    • Click on the Clone button and copy the https link, in this case, https://gitlab.pavlovia.org/Yiannis_A/tutorial.git
    • In your terminal create a folder, say /Documents/TutorialFolder, cd into it and type ~git clone https://gitlab.pavlovia.org/Yiannis_A/tutorial.git. Type your credentials when asked to do so. For the next steps do so every time you are asked.
    • This will create a sub dir, in my case it is called tutorial. cd into it.
    • Copy all the files found in your exp folder in this folder
    • Type git add *
    • Type git commit -m "First commit" or any other comment you want
    • Type git push -u origin master
    • If you now visit https://gitlab.pavlovia.org/Yiannis_A/tutorial.git you will find that the repository is now populated with your files. And if you visit Pavlovia you will find a project with the same name, in my case it is called tutorial.

  2. Updating the exp and syncing with gitlab
    IMPORTANT: Before you make any changes and push them, make sure you first download any data from the remote. Run git pull origin master
    • If you make a change to your exp make sure you compile the js again.
    ◦ Then run git add files_that_have_been_changed
    ◦ Followed by git commit -m "Comment"
    ◦ Followed by git push -u origin master
    • If you want to add files
    ◦ Add them to the folder and then type git add filename
    ◦ Followed by git commit -m "Comment"
    ◦ Followed by git push -u orgin master
    • If you run the exp and want to pull the data run git pull origin master to download the data
    • If you want to remove the datafolder:
    ◦ Delete the folder locally. Better run sudo gio trash data/* rather than sudo rm -rf data so it is moved to trash and not get deleted permantly
    ◦ Then you have to tell git that this was removed. To do so run git rm data/*
    ◦ Then run git commit -m "Comment"
    ◦ Finally run git push -u origin master

1 Like