Graduating Students - GitHub Repositories

Tags github

What happens

After you graduate from Dartmouth, your access to Dartmouth GitHub will be removed. If you do nothing, you will no longer be able to clone your repositories through your Dartmouth account after graduation. Your personal GitHub account and repositories will be unaffected.

Deadline

  • Approximately 60 days after you graduate, your GitHub access will be removed.

What you need to do

  • 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 in your personal GitHub
    • 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 GitHub
git clone <your-git-repo-uri>
cd your-repo

# Create a new repository under your personal GitHub account using the web GUI

# Set the new remote repository URL
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