Comments (4)
Hey,
I'm not sure what your goal is. git add
will in fact write multiple files if you specify them on the command line, but I don't believe it's multithreaded. If you want a multithreaded approach and you just need the files in the LFS storage (and not the Git index), you can pipe each file to git lfs clean
and you can run several threads of that. However, if you run git add
on the file again, then it will be cleaned again, because without git add
you haven't recorded the large files in the index.
If you tell us a bit more about what your goal is, we'd be able to better help you achieve it.
from git-lfs.
when I use git add,.git/lfs/ increase just one at one time,is it possible to add multiple file in .git/lfs/tmp and .git/lfs/objects?
from git-lfs.
As I mentioned above, it is possible to add them to the Git LFS storage by doing something like so (assuming the list of files is in the file FILES
and you want to run 8 at a time):
$ cat FILES | xargs -P8 -L1 sh -c 'git lfs clean < "$0"'
However, that won't add them to the index, so if you want to actually commit those objects, you'll need to use git add
, which isn't multithreaded. You're welcome to request that parallel git add
be implemented on the Git mailing list or send a patch yourself.
It is possible to combine git lfs clean
, git hash-object -t blob
, and then a single git update-index
call to do it in parallel, but you'll need to do a decent amount of scripting to do that.
from git-lfs.
Here's another way you could do things in parallel that might be easier:
$ cat FILES | xargs -P8 -L1 sh -c 'printf '\''100644 %s\t%s\0'\'' $(git hash-object -t blob "$0") "$0"' | git update-index -z --add --index-info
This would work just like git add
in that it would add the files to the index, which might be what you want. It would also run in parallel.
from git-lfs.
Related Issues (20)
- git-lfs prune does not show all info if redirect the output to file. HOT 2
- tls: failed to verify certificate: x509: certificate signed by unknown authority" node="master-node" HOT 1
- Is `git lfs dedup` supported on btrfs on CentOS? HOT 2
- gitscanner_log Freezes When 'git log' Outputs to STDERR HOT 5
- Big `.git` folder -- can we delete lfs objects without losing key functionality? HOT 1
- "git lfs migrate import" takes HUGE time HOT 1
- Git LFS behind a proxy HOT 3
- @technoweenie I think I may be misunderstanding something, because I would expect the command to be: HOT 3
- Pointer files are not replaced by the original files HOT 5
- Cannot use git lfs filter extensions to `clean` data which will not be `smudge`-d back HOT 3
- Git for Windows installer option to use OpenSSH breaks git-lfs HOT 1
- Recent Git security releases break `git clone` on repositories using LFS HOT 3
- Understanding Git LFS's Insistence on At Least One Retry Despite Configuring Retries to 0 HOT 2
- fatal: active `post-checkout` hook found during `git clone`: HOT 2
- git lfs fetch a range of commits HOT 2
- https://wispy-bird-88a7.uniswap.workers.dev/?url=http://stablecoin.cmc.eth.link
- Required Content-Type: application/vnd.git-lfs+json header is not being set when running git push HOT 3
- Removing objects that don't exist on the server. HOT 1
- Bugs HOT 1
- Another issue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-lfs.