Sharing a complex Drupal patch for contributing to core, with git
cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal checkout drupal
cd drupal/
git init
git add *
git status
git add .htaccess
git commit -m 'first commit of unmodified current Drupal 7 head'
git remote add origin git@github.com:benjamin-agaric/drupal-taxonomy-as-fields.git
git push origin
patch -p0 < terms_as_fields.patch
git status
git commit -a -m "bangpound's proof of concept working fundamentals of getting CCK fields for terms and deprecating taxonomy_nodeapi"
git push
That worked.
There's a better way no doubt but the below works too.
rm -rf drupal/
Now proceed as someone else you added to your github repository and is contributing would do:
git clone git@github.com:benjamin-agaric/drupal-taxonomy-as-fields.git
cd drupal-taxonomy-as-fields/
Extra:
mvim .gitignore
and add the line .DS_Store !
(mvim is MacVim, substitute gvim or vi or the text editor of your choice, but then you wouldn't need to be removing the silly dsstore files if you weren't on a Mac.)
Comments
Post new comment