Versions Compared

Key

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

...

Cloning the repository for getpantheon.com (a normal Panopoly/Drupal 7 site) normally takes 2.5 minutes and 62 MiB. A shallow clone takes 1 minute and 29 MiB.

 

Syncing Remotes

It is recommended to have both the Pantheon and GitHub remotes set up in your development environment. The origin remote should point to the GitHub repository.

If you already have the repository set-up with Pantheon then you need to simply change the origin remote url to GitHub. This is probably the case if you are using drush pullsite to get your Kalabox environment set-up.

 

git remote set-url origin git@github.com:kalamuna/my-repo.git

 

If you are setting up a new repository, then you should simply clone the GitHub repository the normal way.

 

git clone git@github.com:kalamuna/my-repo.git greenbiz

 

After you have your origin remote pointing to the GitHub repository, you need to add a new remote called pantheon that points to the pantheon git repository:

 

git remote add pantheon ssh://codeserver.dev.6256bdf4-4973-418b-8d86-650ab1221641@codeserver.dev.6256bdf4-4973-418b-8d86-650ab1221641.drush.in:2222/~/repository.git

 

With this done you're ready for any git challenges. Use

git pull pantheon master

to bring in changes from Pantheon.

git pull github master

to bring in changes from GitHub. Use

git push pantheon master

to push those changes up.

Resources

http://hubdrop.io/ - Mirror drupal.org projects on GitHub.