Versioning in github - The content folder

Hi!

So om setting up my second ever Kirby project and I love it…
But since its file based, it come with some issues when it comes to versioning thru github.

Should the /content folder be ignored in .gitignore or how should I go about it? Dont want images and stuff versioned in that way, or mabye you do?

Will probably work a but locally then push up changes and deploy with github actions.

It depends on how you use Kirby, but in most cases (when using the Panel), it makes sense to ignore the content folder. Then have a backup strategy in place for the content folder on the server (zip files, own repo for content).

See also : Should "content" folder be tracked on GIT repository?

Thanks for the quick reply. Yeah I feel the same! Thinking about setting up a repo on the server only for the content, but there is some connection between the content and the media folder? Do I have to back that up aswell?

When I upload a file it adds to /content and the certain page but I can also se stuff added in the /media? Mabye that doesnt matter and mabye thats generated as a user logs in by the panel?

Media files are copied into the media folder but the media folder acts like a cache and should never be included in version control. See also the .gitignore in the Starterkit for details what to exclude.