We are consolidating our training, model, and graphs repositories into a single mono-repository called Anemoi Core to improve code organization and development workflows. This document outlines how to smoothly transition your work to the new repository.
We provide scripts to help transfer your branches:
https://github.com/MeraX/join_single_repos
git clone https://github.com/ecmwf/anemoi-core
You can decide if you want to add the ecmwf remote, a private remote, or a local remote:
git remote add anemoi-training https://github.com/ecmwf/anemoi-training
Or
git remote add anemoi-training ~/my_anemoi_dev/anemoi-training
There is one assumption of these scripts. Git subtree must be available on your system. These should be in the git-core, but might not be installed as they’re part of git-contrib. On ATOS they’re available through the git module now.
We provided a Python script that needs GitPython (pip install GitPython) from https://github.com/MeraX/join_single_repos/blob/main/git-subtree-scripts.py
python git-subtree-scripts.py training my_feature_in_training
Alternatively, you can use a bash script
https://github.com/MeraX/join_single_repos/blob/main/merge_feature_branch.sh
./merge_feature_branch.sh
These should be documented fairly well, but if the scripts do not work for you, consider asking in #join-repos in the MLPP slack.