Read more

Where to keep project files that should not go to Git

Dominik Schöler
February 02, 2024Software engineer at makandra GmbH

Sometimes you have a file that is related to a project, while not actually being part of it. You'd like to keep them around, but others won't need them – e.g. some notes, a log, or a database dump.

Illustration online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
Read more Show archive.org snapshot

Sure, you have a project directory – but all of it is tracked by Git. A project's tmp/ directory is usually not tracked, but by definition it is not a good place to keep things.

I suggest you keep your related files in a related-files/ directory within your project(s).

To keep this directory untracked by Git in all your projects, add it to your global .gitignore file with echo related-files >> ~/.gitignore.

Further reading

Posted by Dominik Schöler to makandra dev (2024-02-02 08:56)