Skip to main content

GIT

How to Remove an Accidental .env Commit from Git History Using Git Bash on Windows

How to Remove an Accidental .env Commit from Git History Using Git Bash on Windows

Accidentally committing a .env file to a Git repository is a common mistake, but it should be treated seriously because environment files often contain sensitive information such as API keys, database credentials, access tokens, and application secrets.

Apply Magento2 Patch manually using GIT

The best easy way is to simulate the directory path, so lets assume you will need to fix the comparison page after you upgrade to Magento 2.3.5-p2

Filename: vendor/magento/module-catalog/Helper/Output.php

we need to replace this line 

- if (preg_match($pattern, $attributeHtml)) {

with this line 

+ if (preg_match($pattern, (string) $attributeHtml)) {

 

Now create those directories vendor/magento/module-catalog/Helper