Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Note
titleWARNING

This method will completely blow out your database and your ENTIRE commit history on ALL Pantheon environments. Be sure to back everything up!

Context

Reasons you might want to change the upstream on an existing project vs starting a new project:

  • billing is already set up, and a hassle to redo
  • site IDs are in use in CI like Travis
  • lots of users are associated with the dashboard
  • the site is part of another organization and needs to stay that way

How to

Backing up

Make sure you have a local copy of the codebase via git. You can use this to rebase against the new git upstream. SeeĀ Creating Pantheon Sites and Choosing an Upstream under Syncing remotes on how to replay history from one remote over top of another.

Export your database from the dashboard and download it locally. You'll want to re-import it later.

Changing the upstream

Visit your pantheon dashboard

...