Graduating Students - GitLab Repositories

Tags git gitlab

What happens

Dartmouth will retire its GitLab instance in favor of a cloud-hosted GitHub implementation during Fiscal Year 2024. The organization of repositories and the process for granting access will undergo changes during this migration. After you leave Dartmouth, your GitLab access will be removed. If you do nothing, you will no longer be able to clone your repositories through your Dartmouth account after graduation. 

Deadline

  • Approximately 60 days after graduating, your GitLab access will be removed.

What you need to do

  • To begin with, You'll need to choose & register with an alternative Git service (like GitHub, GitLab, etc.) in case you'd like to push a copy of code to another remote.
  • If you only want to clone the repositories locally on your machine, you can simply do so and ignore the other steps in this guide.
  • This process would involve the following steps-
    • Clone the Repository Locally
    • Create a New Repository on the Destination Platform
    • Update Repository Configuration
    • Push to the New Repository
    • Verify Migration and update places where You've been using this repository
  • Here are the example commands you can follow to accomplish the aforementioned steps.
# Clone the repository from GitLab
git clone <your-git-repo-uri>
cd your-repo

# Create the repository in the new location using the Service Website

# Set the new remote repository URL (if migrating to a new platform)
git remote rename origin old-origin
git remote add origin <your-new-git-remote-repo-uri>

# Push all branches to the new remote
git push --set-upstream origin --all

# Push all tags to the new remote
git push --set-upstream origin --tags
Print Article

Details

Article ID: 159495
Created
Tue 5/28/24 6:30 PM
Modified
Tue 8/27/24 10:46 AM