{ "cells": [ { "cell_type": "code", "execution_count": null, "id": "95f87010", "metadata": {}, "outputs": [], "source": [ "test0" ] }, { "cell_type": "code", "execution_count": 2, "id": "8afe8465", "metadata": { "deletable": false, "editable": false, "run_through_control": { "frozen": true, "read_only": false } }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "/home/jovyan\n", "Total: 0.00 datasets [00:00, ? datasets/s]\n", "Total: 0%| | 0.00/4.78M [00:00gin:refs/heads/git-annex f77ad59..6b0339e]\n", "\u001b[1;1mpublish\u001b[0m(\u001b[1;32mok\u001b[0m): . (\u001b[1;35mdataset\u001b[0m) [refs/heads/master->gin:refs/heads/master 6a511f3..621216e]\n", "action summary: \n", " copy (ok: 3)\n", " publish (ok: 2)\n", "\u001b[0m" ] } ], "source": [ "%cd ~/\n", "!datalad save test0\n", "!datalad push --to gin" ] }, { "cell_type": "markdown", "id": "adfe5ffe", "metadata": {}, "source": [ "### GIN-gnode版\n", "\n", "step0:コード付帯機能の公開鍵をGIN-gnodeに登録する \n", "step1:空リポジトリを作成する \n", "step2:空リポジトリのSSH URLをリモートに設定する \n", "step3:登録したGIN-gnodeリモートにpushする " ] }, { "cell_type": "code", "execution_count": 3, "id": "c52ef82f", "metadata": { "deletable": false, "editable": false, "run_through_control": { "frozen": true, "read_only": false } }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKT+DlZdwsmjNg4wAuJf6T65uIpKI0fOHEHjTQSqT15C jovyan@jupyter-ivis-5frino-5fmizuguchi-40rdm-2enii-2eac-2ejp--ivis-2dm\r\n" ] } ], "source": [ "!cat /home/jovyan/.ssh/id_ed25519.pub" ] }, { "cell_type": "code", "execution_count": 7, "id": "f673371b", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "[INFO ] Could not enable annex remote gnode. This is expected if gnode is a pure Git remote, or happens if it is not accessible. \n", "[\u001b[1;33mWARNING\u001b[0m] Could not detect whether gnode carries an annex. If gnode is a pure Git remote, this is expected. \n", ".: gnode(-) [git@gin.g-node.org:/ivis-mizuguchi/0606-0.git (git)]\n", "\u001b[0m" ] } ], "source": [ "ターミナルで以下を実行\n", "datalad siblings add -s gnode --url git@gin.g-node.org:/ivis-mizuguchi/0606-0.git\n", "datalad push --to gnode" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.9.10" } }, "nbformat": 4, "nbformat_minor": 5 }