Update Drupal 8 core via composer on your local environment

Drupal 8
  1. Open the terminal app (or the terminal in VS Code) and change to the root site directory of the site you are updating
    cd [path/to/site/root/directory]
  2. Switch to the main branch and fetch the latest changes
    git checkout master
    git fetch --all
    git pull
  3. Create a new branch from the main branch for the Drupal core update
    git checkout -b update/core-[version]
  4. Upda

Easy Drupal 7 upgrade using Git patch file

Code everywhere

Updating Drupal 7 can be a challenging task. As a developer, using a version control system, like Git, helps me keep my sanity and also leverage it by creating and applying the patches rather than manually removing/adding files. This greatly helps especially if you're managing multiple Drupal 7 sites. 

Drupal 7 patch files

Download one of the patch files below to update your Drupal 7 core from one version to the next.

Create the last commit patch file with Git using format-patch and apply to another

https://unsplash.com/photos/842ofHC6MaI

Using git-format-patch exports commits as patch files. You can then send these to your colleagues to be applied on another branched or cloned repository of the project. These patch files can contain one or more commits and Git replays that commit when you apply it.

Tags