Search code examples
gitgithubassets

What should one do with media assets related to a Git repository?


Some of the simple examples of GitHub practice will include addition or deletion of code in HTML/CSS files.

However, what should one do with media assets (which may be central to a web app)? Is it feasible or worthwhile to use Git and/or GitHub to store media assets such as images, or even video? What's considered best practice?

After reading this Stack Overflow post, it seems to me that Git can possibly store some kind of acknowledgement that they exist as part of a project. In addition, this link gives some good tips for dealing with assets.

What should I do with those assets?


Solution

  • This information on Stack Exchange was helpful

    It seems that some people are proponents of using submodules within git, or even creating a separate repository for images/assets. Some say using a third party like Dropbox can help, or Unison. Others find it necessary to include assets in version control.

    As far as I can see, uploading assets to a Git Hub repo wont degrade images so there is no reason not to, within the recommended 1gb limit.. To conclude, as with most things, it all depends on your requirements and circumstances at the time.