Upgrade Your Drupal Skills

We trained 1,000+ Drupal Developers over the last decade.

See Advanced Courses NAH, I know Enough

Quickly Apply Patches Using Git and curl or wget

Parent Feed: 

Testing a patch file is usually a two-step process. First you download the patch file from the source, and then you run a separate command to apply it.

You can save time and typing by running the two commands on one line:

$ curl http://drupal.org/files/[patch-name].patch | git apply

Or, if you don't have curl installed, you can use wget:

$ wget -q -O - http://drupal.org/files/[patch-name].patch | git apply

These commands need to be run within the root of your Git repository (i.e. where the .git directory is).

These snippets were taken from Applying Patches with Git on Drupal.org.

Author: 
Original Post: 

About Drupal Sun

Drupal Sun is an Evolving Web project. It allows you to:

  • Do full-text search on all the articles in Drupal Planet (thanks to Apache Solr)
  • Facet based on tags, author, or feed
  • Flip through articles quickly (with j/k or arrow keys) to find what you're interested in
  • View the entire article text inline, or in the context of the site where it was created

See the blog post at Evolving Web

Evolving Web