Is there a possible way to keep only the latest version of some specific files on GitHub?
For example, I want to upload some pdf files to GitHub, but I don’t want to waste too much space keeping the history of those pdfs.
Although upload binary files to GitHub is not a good idea, it is really convenient.
CodePudding user response:
Use git-lfs
to store large files without bloating the repository.
Or consider whether this is an appropriate use of Git; perhaps use cloud storage such as Amazon S3 instead.
CodePudding user response:
Use git-lfs
to store large files without bloating the repository.
You need to be careful storing large blobs inside of Git projects. Github publishes some guidelines around this...