zahbaz
zahbaz

Reputation: 183

How to keep newest version of binary files on GitHub without fully tracking them?

I'd like to keep the newest version of some binary files (i.e. pdf, jpg, png) up to date on my GitHub via the git add/commit/push workflow that I know. But I have no need for tracking their history, since these files are generated from the remaining code.

I could ignore tracking these file-types, then force remove and add when pushing, but that seems inefficient. How do I best handle this?

Upvotes: 2

Views: 326

Answers (1)

VonC
VonC

Reputation: 1323203

You could:

  • create and push a tag
  • associate to that tag a release, a zip archive composed of those files.

That way, you can associate a set of files to a specific version of your code.

See "Managing releases in a repository" from GitHub.

Upvotes: 1

Related Questions