-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
git bundle
support or an "offline" workflow?
#1755
Comments
git bundle
suppport or a "offline" workflow?git bundle
suppport or an "offline" workflow?
Adding a |
git bundle
suppport or an "offline" workflow?git bundle
support or an "offline" workflow?
Hi, circling back on the above. It is still the case that we do not have immediate plans to work on something like this, and I would still be more than happy to help anyone who is interested and does have the time. For now, since this isn't actively on my radar (or anyone else on |
:-( |
I have the same needs, are there no plans to achieve them? |
I use a shell script to workaround this issue. It basically creates a tar archive with all the changed LFS files between the commits you want to bundle. When you want to unbundle you should extract the tar file before running git pull. I've created a gist of it here: https://gist.github.com/dvdveer/a47966db83af115e6200124f92e22761 |
@dvdveer thanks for sharing |
I used a similar way to solve,but this way can only package the resources of the current branch. What should I do with the resources of other branches? @dvdveer |
The script that I shared also works with other branches. The only condition is that the lfs objects are already downloaded in your local repository. I solve this by running |
I agree with the previous posters that bundle support is a necessity for some workflows, in my case to work on a git repo over an airgap. Using a local remote on a usb-stick seems to be unsupported by lfs as well (#3078), is there any alternative that I didn't think of that could replace both? The solution from @dvdveer is nice bandaid, but an "official" solution that is tested and can be used reliably would be much appreciated. |
Local repositories are indeed supported and have been since I believe 2.10.0. You can therefore create a flash drive (I'd pick UDF, not FAT or exFAT) and push a repository to that flash drive. |
@bk2204 Is there any info on how to create a local repositry using LFS? You mentioned above creating a flash drive and push the repository to this. Would it be possible to get steps on this process? |
I assume that comment referred to this: |
Thanks! I'm still not sure about the whole process - we are looking to create an offline bundle with a repository using LFS Can't seem to find a comprehensive list of steps to recreate this |
The way to create a local LFS repository is simply |
git bundle
is a a great git functionality to bundle individual commits into a container file that can then be used to update a git repository that is located on a computer which cannot directly reach the originating repository or the repository manager (i.e.github.com
). I use it regularly to "pull" github repositories from isolated computers that don't have Internet access.However, these bundle files don't include files tracked in
git-lfs
.Are there any workarounds to achieve the same with
git-lfs
?Are there any plans to add
git bundle
support togit-lfs
(i.e. something likegit lfs bundle
)?The text was updated successfully, but these errors were encountered: