engineering

Ably Engineering Team: Git Standards and Best Practices

This page contains notes specific to how we’re using Git with our open source (public) repositories.

Git Ignore (.gitignore) Files

We’re unlikely to ever have a repository that doesn’t eventually need a Git ignore file, in some cases a few of them (i.e. in sub-folders).

The general principle is that these must be explicit and specific to the requirements of the particular codebase they’re included in.

This means:

git global ignore files

See this blog post, shared by Tom Kirby-Green in this Slack thread (internal).

This may be tempting, but be aware that many users will not have this. So, for us to have true empathy for our developer users (mainly, in this case, contributors) then you might lose visibility in your day-to-day of what they’re experiencing in terms of Git ‘noise’ if you use this git global configuration.