Header

Line endings in Git repository

You may find that when deploying to different server environments, such as Windows, that line endings may not be as you'd expect in your code. Git uses the line ending formatting of the system cloning your repository by default, therefore when deploying code to Windows servers from DeployHQ's servers which run a Unix-based environment, you will find differences.

You can override this by creating a .gitattributes file in the root of your repository, containing the following line:

* text eol=crlf

This will force crlf line endings used by Windows. Once this change to your repository has been committed and pushed, you can (Recache your Repository](advanced-configuration#how-do-i-recache-a-repository) in DeployHQ to ensure the updates are fully applied.

Tree

Proudly powered by Katapult. Running on 100% renewable energy.