简体   繁体   中英

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 (ie 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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM