I would like to know if there are best practices for this situation:a website with its source code in version control (e.g. git).code makes references to specific assets like images, that can't be included in version control due to their size.How to have in sync the code and images but keeping them outside the git branch?My current approach for this is to upload the images directly to a server and then in the code just having a reference to the image URL but I would like to know more robust workflows to make backups and maintenance easier, and have clear snapshots .
How to keep images in sync with a website without including them in version control?
version control;workflows
[The text of this answer was originally written by Peter Rowell]I always include a site's images in VC if they are part of the basic layout / presentation (logos, etc.), and I also include those that are part of the primary content created by the site owners.. This is distinct from images that are uploaded as part of a user comment. Disk is cheap, and DVCS's are amazingly fast, so you lose nothing by doing it.