This page will lead you in the installation of the different tools needed to synchronise your gin tonic repository on your windows computer.

Step 1: Install Datalad

Following the handbook.

Make sure NOT to skip one step and do it one after the other, Python needs to be available in the normal command application (search for "cmd"):

  • Install Python for the command application
  • Install Git
  • Install Git-annex
  • Install DataLad

You may use the following commands to test each step, in the command application:

python -- version
pip --version
git version
git-annex version
datalad -- version

Step 2: Provide SSH keys

A. Create a key To create a ssh key, you may follow this tutorial. However, using Rstudio is much easier and faster.

Install R and RStudio via the installer.

Following Rstudio tutorial: in the tools menu, choose the global Options, choose Git/SVN, push the create SSH key button. Do NOT add a passphrase (simply leave it blank) ! Once the key is created, you View the public key and copy it.

B. Use the key

In GIN (in the internet browser), you need to add one key: click on your avatar on the top right corner of this page, choode your settings. Choose the SSH Keys vertical tab, then click the blue add Key button. Give it a name of your choice, and paste the public key text in the Contentsection.

Step 3: clone the GIN repository

Run datalad clone <ssh address>:

  • Go to your .mainrepository and paste the ssh address you get. Its form should be similar to ssh://git@gindata.biologie.hu-berlin.de:10022/organame/projectname.main.git
  • open a command prompt window, you may try to right click on a folder to open the terminal inside that specified folder
  • write datalad clone
  • paste the ssh address you copied before
  • type return

The repository should be cloned at that point. This means that the content of the main repository will be downloaded on your local machine.

Step 4: Run the script for the first time

double click script

On your normal desktop window, double click the sync.bat file. The script will initiate submodules.

Step 5-infinty

Make changes locally or with the browser and double click the same sync.bat script to synchronise the two copies.

The script will show you the changes made and ask you for a message that will be used to write the version history: describe the change made in that message. If there are no local changes, press return to download changes made online.

The script will then ask if he should drop content: this would delete the big files on your computer (only if the file is present on the server).

If necessary and update content from the server to your computer and vice versa.

julien colomb 于 1 年之前 修改了此页面