The drop is always movingYou know that saying about standing on the shoulders of giants? Drupal is standing on a huge pile of midgetsAll content management systems suck, Drupal just happens to suck less.Popular open source software is more secure than unpopular open source software, because insecure software becomes unpopular fast. [That doesn't happen for proprietary software.]Drupal makes sandwiches happen.There is a module for that

Make git work more similar to cvs

Submitted by nk on Sun, 2011-02-27 06:35

If you used bzr/cvs/svn checkouts and want something similar then in the repository root do:

git clone git://git.drupal.org/myproject.git
cd myproject
git config branch.autosetuprebase always
git config push.default current
git config branch.$(git symbolic-ref HEAD | cut -c 12-).rebase true
echo 'git push' > .git/hooks/post-commit
chmod 755 .git/hooks/post-commit

After this (on at least on Linux and Mac OS X)

  1. Contents will be pushed after every commit
  2. new branches will rebase after every pull.
  3. The only existing branch (master but can be something else with for example git clone --branch 6.x-1.x use the instruction on the Git instructions page of your project for this step) will rebase after every pull.

It does not abort commits if the local repo is behind remote, however. I would love to see tips on how to do that.

Commenting on this Story is closed.