wd42 / wd42-deployment

This repository holds the various deployment scripts used in pushing the wd42-site live [archived]
1 stars 1 forks source link

Make this a branch on the wd42-site repo #3

Open mx-moth opened 10 years ago

mx-moth commented 10 years ago

Instead of a separate repository, this could be a branch of the wd42 repository. If an orphaned branch is used, the two histories will be completely separate and unrelated, but then all the code is in one location:

$ cd wd42-site

$ git remote add wd42-deployment https://github.com/wd42/wd42-deployment.git

$ git fetch wd42-deployment
warning: no common commits
remote: Counting objects: 45, done.
remote: Compressing objects: 100% (34/34), done.
remote: Total 45 (delta 18), reused 33 (delta 6)
Unpacking objects: 100% (45/45), done.
From https://github.com/wd42/wd42-deployment
 * [new branch]      master     -> wd42-deployment/master

$ git checkout -b deployment wd42-deployment
Branch deployment set up to track remote branch master from wd42-deployment.
Switched to a new branch 'deployment'

$ sed -i 's#wd42/wd42-deployment/master#wd42/wd42-site/deployment#' bootstrap.sh README.md

$ git add bootstrap.sh README.md

$ git commit -m 'Changed the location of the deployment scripts'
[deployment 3626b68] Changed the location of the deployment scripts
 2 files changed, 3 insertions(+), 3 deletions(-)

$ git push origin -u deployment

Having everything in the one repository makes it all contained and easy to ship around.

mx-moth commented 10 years ago

I would make a pull request on the wd42-site repository, but github does not allow pull requests to be made for unrelated commit histories. Booo. I have a fork with the deployment branch in it, which just does these modifications.

joshgillies commented 10 years ago

Oh nice trick! :+1:

Will look at either pulling or performing the above in the coming days, cheers!

jonnyscholes commented 10 years ago

Oh that is cool. Cheers :)