To set up a recent version of the gin client together with a recent version of git-annex one can set up a conda environment that contains both. For this you need to
- create the environment with git-annex
ginenv=<my-environment-name>
conda create -n "$ginenv" -c conda-forge git-annex
conda activate $ginenv
- add the gin binary to the environment
envbindir=$CONDA_PREFIX/bin
wget https://gin.g-node.org/G-Node/gin-cli-releases/raw/master/gin-cli-latest-linux.tar.gz -P $envbindir
tar -xvzf "$envbindir/gin-cli-latest-linux.tar.gz" -C "$envbindir"
- confirm package versions Gin should now use the git-annex version provided by the conda environment:
gin --version
git-annex version
Note: When working collaboratively on git-annex based repositories make sure to agree on a version of gin and git-annex since you might encounter inconsistent repository states otherwise.