Skip to content

Instantly share code, notes, and snippets.

@clayball
Last active January 12, 2018 15:27
Show Gist options
  • Select an option

  • Save clayball/5fbdc2c82ccfdf5f1c9699a311d4480b to your computer and use it in GitHub Desktop.

Select an option

Save clayball/5fbdc2c82ccfdf5f1c9699a311d4480b to your computer and use it in GitHub Desktop.

Testing the updates branch of the D7 upstream

Create a new multi-dev named updates. Then open a terminal and checkout it out.

cd site-name
git checkout updates

Add the D7 upstream as a remote so we can pull from the updates branch. Note: this remote will be available when you switch back to the master branch.

git remote add updates [email protected]:sas-isus/d7-upstream.git

Confirm the new remote repo named updates was properly added.

git remote -v

WARNING: Be careful with the next step!

Pull in changes from the D7 upstream updates branch (our remote named updates). The options to git pull are followed by .

git pull updates updates

w00t! You just fetched and merged the updates branch from the remote named updates.

Push these changes to the Pantheon multi-dev site.

git push origin updates

If your head just spun around that's OK.. it's a natural reaction.

You can now visit the multi-dev URL

https://updates-site-name.pantheonsite.io

In summary, we performed the following steps.

git checkout updates
git remote add updates [email protected]:sas-isus/d7-upstream.git
git remote -v
git pull updates updates
git push origin updates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment