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
Latest posts
—
Structured data for SEO
Adding structured data to a website is one of those steps that often gets overlooked, yet it can make a real difference to how a site performs in search engines.…
—
Using WordPress as a static site generator
Static site generators have gained significant traction amongst developers, designers, and businesses seeking faster, more secure websites. Unlike traditional dynamic sites, which rely on a database to deliver content on…
Continue reading "Using WordPress as a static site generator"
—
Simple steps to protect your privacy online
In today’s digital world, protecting your privacy online has become essential. With personal data constantly being shared, stored, and potentially accessed by unauthorised parties, safeguarding your privacy can help you…
Continue reading "Simple steps to protect your privacy online"
—
Moving a WordPress Website with ACF and Custom Post Types to Brightspot CMS
Migrating a website from WordPress to Brightspot CMS can seem daunting, particularly when the WordPress installation relies heavily on Advanced Custom Fields and Custom Post Types. Both ACF amd CPT…
Continue reading "Moving a WordPress Website with ACF and Custom Post Types to Brightspot CMS"