Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Protocol of dataset component syncing in superds clone in project directory #53

Open
1 task
mih opened this issue May 3, 2021 · 0 comments
Open
1 task

Comments

@mih
Copy link
Contributor

mih commented May 3, 2021

# change into (uninstalled) subdataset
cd derivative/cortical_surfaces_freesurfer

# obtain subdataset (datalad is configured to pull it from the internal RIA store via SSH)
datalad get -n .

# undo https://github.com/datalad/datalad/issues/5628
git annex enableremote inm7-storage url=ria+http://studyforrest.ds.inm7.de

# verify that is obtained `inm7-storage` from bulk1 vis SSH
git cat-file -p git-annex:remote.log

# add a GIN project (already created via the website), and configure as a type-git special remote
datalad siblings add -d . --name gin-update --pushurl [email protected]:/studyforrest/cortical-surfaces-freesurfer.git --url https://gin.g-node.org/studyforrest/cortical-surfaces-freesurfer.git --as-common-datasrc gin

# undo undesired auto-config made by git-annex
git config --unset-all remote.gin-update.annex-ignore

# register github project too
git remote add github [email protected]:psychoinformatics-de/studyforrest-data-freesurfer.git

# get the state of all repos
git fetch --all --prune

# visual inspection -- sometimes the status quo is chaotic
tig --all

# merge pending contributions
git merge github/master

# pull all data locally for upload to GIN
datalad get .

# upload to GIN
datalad push --to gin-update

# sync availability with GitHub
datalad push --to github
datalad push --to origin

# verify availability info
git annex find --not --in gin-update
git annex find --not --in inm7-storage

# drop all files
datalad drop .

TODO

  • go through and add publication dependencies on origin for any push to gin-update or github, to make sure we have all changes locally too.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant