Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to archive a git repository which uses LFS?

I'm looking to archive a git repository to a regular file server for a client.

Previously I've used git bundle create [path] --all to do this and it's worked well.

However this repository is using Git LFS, and the LFS files aren't included in the bundle created using the above command.

  1. How can I easily export all commits, branches and history for the repository, including LFS files?
  2. Is this possible with LFS?
like image 883
mattbilson Avatar asked Nov 09 '22 14:11

mattbilson


1 Answers

The only way i figured out, is to zip and copy the tracked files and store them next to the repository. Every git-lfs system got a location where the versions of the tracked files are stored.

I will try to figure out something better, since im trying this aswel. If u find a solution, let me know pls

like image 110
Frossy Avatar answered Nov 15 '22 04:11

Frossy