Skip to content

Moving From Gitlab to Github Steps

sudobangbang edited this page May 2, 2024 · 12 revisions
  1. Admin: check that the latest commit on Gitlab is on Github ✅

  2. Admin: make sure Gitlab branches conus-dps and primarykeyv2 are protected so no one can push to them ✅

  3. Admin: turn off mirroring push in Gitlab repository ✅

  4. Everyone: run these steps in the places where you've checked out your code:

    Make sure your local is up to date:

    cd <to-your-checked-out-fireatlas_nrt-repo>
    git fetch
    git fetch --tags

    List out the remote repository aliases (you probably only have ones called "origin"):

    $ git remote -v
    origin  https://repo.maap-project.org/gcorradini/fireatlas_nrt.git (fetch)
    origin  https://repo.maap-project.org/gcorradini/fireatlas_nrt.git (push)

    Now swap out that "origin" remote URL:

    git remote set-url origin git@github.com:Earth-Information-System/fireatlas.git

    Double check your work to make sure remote origin is updated:

    $ git remote -v
    origin  https://github.com/Earth-Information-System/fireatlas.git (fetch)
    origin  https://github.com/Earth-Information-System/fireatlas.git (push)
  5. Admin: after everyone has moved over then archive the repo

  6. Admin: then start async migrating 1) boards, 2) issues and 2) the single PR from Gitlab to Github

Clone this wiki locally