Datalad edit OpenNeuro dataset

Hi Datalad/OpenNeuro Community!

I am trying to edit (add/edit events files) a dataset (my own dataset) and was wondering if I can use Datalad to do so (instead of using the web interface).

I am able to clone the dataset, make and save the changes, but I am struggling to understand how to sync the changes with the git repository (I tried push to origin but getting the following error:

"CommandError: 'ssh -o ControlPath=/Users/home/Library/Caches/datalad/sockets/026218b3 git@github.com 'git-receive-pack '"'"'OpenNeuroDatasets/ds004141.git'"'"''' failed with exitcode 1
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.']"
)

Any advice?

Thank you

We have docs on this here: Git access to OpenNeuro datasets - OpenNeuro documentation

To get the URL, click the “Clone” button on your draft. You should see both the public GitHub URL and the private OpenNeuro URL.

Thank you so much for your response.

I used the openneuro URL.

I can use the cli, datalad, API interface to clone the dataset, but (after editing some files and save the dataset), when using push

datalad push --to origin

It asks for un and pw

Username for 'https://openneuro.org':

Really don’t know how to proceed.

git config file has

[remote "origin"]
	url = https://openneuro.org/git/0/ds004141
	fetch = +refs/heads/*:refs/remotes/origin/*
	annex-ignore = true
...
[credential]
	helper = openneuro git-credential

When trying with the github URL I get 403 error.

Thank you

What happens if you use git and git annex directly? It may be that datalad is not picking up the full config.

1 Like