1

Our GitHub repo has grown in size. Cloning on a new machine takes a lot of time and bandwidth. This is mainly because we're keeping JAR files in our repo. I understand we can use something like nexus to place jars.

As a short term fix, is there a way we can keep only last n versions of a file in GitHub?

Thanks

Nitin Pandey
  • 649
  • 1
  • 9
  • 27

1 Answers1

1

Ideally, you might consider activating Git LFS in order to store only references to your JARs instead of the binary artifacts themselves.

It is possible on GitHub, but the bandwidth will be limited.

The alternative is to use Instead of BFG, try the new git filter-repo, which will replace the old git filter-branch or BFG.
You would need a commit callback which would remove those files if the date is too old.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250