Skip to content

MeraX/join_single_repos

Repository files navigation

Anemoi Repository Migration Guide

Overview

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.

Key Points

  • Continuous Development: This migration should not block your ongoing work. Continue development in your current repository until you're ready to migrate.
  • Current State: The new mono-repository contains the latest state of all individual components, serving as your migration target.
  • Flexible Timeline: Each developer can migrate their work according to their own schedule. The migration process is designed to be self-paced.
  • Repository Access: The original repositories will remain accessible in read-only mode, ensuring no historical information is lost.

Migration Process

Branch Migration

We provide scripts to help transfer your branches: https://github.com/MeraX/join_single_repos

Steps

  1. Clone the new repo
git clone https://github.com/ecmwf/anemoi-core
  1. Add the Remote
    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
  1. Run the migration script for your branch
    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 two options:

Option A: Python Script
Requires GitPython (pip install GitPython)
Script location

python git-subtree-scripts.py training my_feature_in_training

Option B: Bash Script
Script location

./merge_feature_branch.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published