Warning: Your browser is very out-of-date. You should upgrade to a better browser.

Some useful copy-and-paste lines for the .gitattributes file when using Beanstalk Git.

Image and other binary files

Upload and store images as binary files, rather than text – the default. This will stop images being corrupted upon commit/push.

*.png binary
*.gif binary
*.jpg binary
*.jpeg binary

Dealing with line endings

Handle line endings automatically for files detected as text and leave all files detected as binary untouched.

* text eol=lf

The above will handle all files NOT found below it. The lines below should be added as the files are text and should be normalized (Convert crlf => lf)

*.gitattributes text eol=lf

.gitignore text eol=lf

Hello, I'm Keith, a website developer in Belfast, Northern Ireland working with PHP, Magento, Shopify and WordPress.

I've been building websites for over 10 years, from custom website development to bespoke web applications, Shopify and Magento ecommerce and Online Leaning Environments. I've worked on a range of projects and am always looking out for the next interesting project.

Related Notes Posts

Notes August 2021

Apache VirtualHost with Reverse Proxy

This post documents the process of setting up a reverse proxy to load one (origin) website in the subdirectory of another. During this process the...
Notes June 2021

Upcoming changes to eBay's PayPal Payments

Over the course of 2021 eBay will be incrementally changing how it works with sellers. Changes include updates to the fee structure, how fees are...
Notes May 2021

Choose a better browser

Updated for 2020 A run down of the most popular web browsers including Firefox, Chrome, Edge and Opera as well some alternate options if you'd like something different....

More Notes Posts...