What is this post about?

Part of my daily activities is maintaining Drupal websites. This post is an ongoing notebook with all the commands and scripts I commonly use.
Although I keep them in Gists; a central place for collecting and accessing them looks a bit handier.

Dump with drush

Get a tidy database dump without all the unnecessary and temporary content.

Delete all the Watchdog entries

Clear all the entries from the watchdog table.

Generate patches

Create patches for the last {n} commits.

Read how to apply patches with composer

Git — Ignore committed files

The problem: We add to .gitignore files that were previously committed.
The goal: Ignore the files and remove them for the history of Git.

To be continued …



Stavros Kounis

Software developer and Javascript enthusiast, passioned with web and mobile technologies, skounis.github.io