Before we can create a patch the Drupal 8/Git way, we need to check out the colorbox module project with Git to a new directory:
Go to https://www.drupal.org/project/colorbox/git-instructions. At the top, you can see the Version to work from select box. Select 8.x-1.x and click on the Show button:
Now open the Terminal and go to any location (the
cd <path/to/go>
command) where you wish to clone the colorbox module. Run the following command to clone the colorbox Git repository:$ git clone --branch 8.x-1.x https://git.drupal.org/project/colorbox.git Cloning into 'colorbox'... remote: Counting objects: 2082, done. remote: Compressing objects: 100% (1545/1545), done. remote: Total 2082 (delta 1253), reused 661 (delta 410) Receiving objects: 100% (2082/2082), 1.84 MiB | 27.00 KiB/s, done. Resolving deltas: 100% (1253/1253), done. Checking connectivity... done.
Next, we need to make the same changes in the
colorbox...