Caution: This post was published in 2015 and may contain information, techniques, or code examples that are no longer current. Please double-check official documentation and modern best practices before using anything from this article.

Useful .gitattributes defaults for Beanstalk Git

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

Choosing the right content management system

Choosing the right content management system (CMS) is one of the most consequential early decisions when building a website The content management system shapes everything from how editors publish to…

Continue reading

WYSIWYG or plain-text CMS editing?

Finding the Right Balance for Your CMS UsersWhen configuring a content‑management system (CMS), the choice between a WYSIWYG (What‑You‑See‑Is‑What‑You‑Get) editor and a plain‑text interface has far‑reaching implications for both usability…

Continue reading

General-purpose AI assistants

Four AI assistants compared by power, privacy, integration and real-time awareness. ChatGPT, Gemini, Lumo and Grok are all general-purpose AI assistants, but they are built around markedly different priorities: overall…

Continue reading

Website speed improvements

Website speed has become one of the most significant factors in determining user satisfaction and search performance. A slow-loading website can frustrate visitors, damage your brand’s credibility and, ultimately, cost…

Continue reading