Drupal: Features + Drush + Git Aliases to Boost Productivity

Posted on

If you are using the Features module to export your Drupal site configuration, Drush, and Git as your VCS, try these aliases out to save a ton of time and boost your productivity.

  1. Create a Feature to encapsulate your site’s configuration. In this example we’ll call it mysite_config

  2. Add a configuration parameter in the git repo for your site:

    git config project.config mysite_config

  3. Add these git aliases to your global config to mimic drush shortcuts for feature-update, feature-export and feature-revert (you will need to edit the file directly):

Each is one line

fe = "!sh -c '[ -n $(git config project.config) ] && [ $# = 1 ] && drush -y fe $(git config project.config) $1 || echo "Usage: git fe <

Leave a Reply

Your email address will not be published.