Skip to content

Commit c993ef9

Browse files
committed
final tweaks to gin workflow (should work now)
1 parent 2501181 commit c993ef9

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

workflows/04_git_datalad_gin.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,13 @@ GIN siblings provide both:
8787
- A Git remote for history/metadata ("gin").
8888
- A storage sibling for annexed content ("gin-storage").
8989

90+
```bash
91+
# Ensure you have an SSH key and it’s added to GIN
92+
test -f ~/.ssh/id_ed25519.pub || ssh-keygen -t ed25519 -C "$USER@$(hostname)"
93+
cat ~/.ssh/id_ed25519.pub # paste at https://gin.g-node.org/user/settings/keys
94+
ssh -T git@gin.g-node.org # accept host key; should say "Permission denied" but show your user => OK
95+
```
96+
9097
Create the sibling, configure push dependencies, and push.
9198

9299
Choose a unique repo name under your GIN account.
@@ -98,7 +105,8 @@ REPO_NAME="${GITHUB_REPO_NAME_GIN}"
98105
Create the GIN sibling (SSH recommended). This creates two siblings: `gin` and `gin-storage`. Print list of siblings after creating to see what is going on here.
99106

100107
```bash
101-
datalad create-sibling-gin "$REPO_NAME" -s gin `--access-protocol https`
108+
cd demo_dataset
109+
datalad create-sibling-gin "$REPO_NAME" -s gin --access-protocol ssh
102110
datalad siblings
103111
```
104112

@@ -110,13 +118,6 @@ Push Git history/metadata (annex content will be sent to gin-storage via publish
110118
datalad push --to gin
111119
```
112120

113-
Register `gin-storage` as a common data source in the dataset (i.e., that is available regardless of whether the dataset was directly cloned from GIN or from somewhere else) and push again to update cloud repo metadata.
114-
115-
```bash
116-
datalad siblings configure -s gin --as-common-datasrc gin-storage
117-
datalad push --to gin
118-
```
119-
120121
Now register the subdataset URL in the parent so fresh clones know where to get it, then push the parent.
121122

122123
```bash

0 commit comments

Comments
 (0)