You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(The problem was also posted to Git mailing list and StackOverflow, but without any responses. So, I'm forwarding it here (or is there any Git LFS forum?))
I have a repo of a superproject with number of submodules. lots of files of both are in Git LFS.
The repo comes with multiple long-lived release branches.
Problem
The complete clone transfers 20 GB of Git and Git LFS objects.
Checkout of master deflates the total repo to 40 GB in total, that is the objects and the working tree files together.
Let's consider three separate clones as canonical way to create three working copies, one per the long-lived branch:
(The problem was also posted to Git mailing list and StackOverflow, but without any responses. So, I'm forwarding it here (or is there any Git LFS forum?))
I have a repo of a superproject with number of submodules. lots of files of both are in Git LFS.
The repo comes with multiple long-lived release branches.
Problem
The complete clone transfers 20 GB of Git and Git LFS objects.
Checkout of master deflates the total repo to 40 GB in total, that is the objects and the working tree files together.
Let's consider three separate clones as canonical way to create three working copies, one per the long-lived branch:
I'm trying to work out a network-optimised equivalent of the above:
Questions
How to checkout an existing branch fetched from remote, delete the previous branch and clean up any remains?
How to clean up everything related to the previously checked out master and its working tree, any cached previous LFS downloads etc.?
But, to keep the history of origin/master.
Solution Prototype
Here is what I have come up with for the the network-optimised workflow:
Questions to Prototype
Does it look correct or any steps are missing/redundant?
Does it make sense to run any of these, at which point?
Please, assume, no new commits will happen locally between the
git clone --branch master ...
andcp -a repo_master ...
The text was updated successfully, but these errors were encountered: