-
Notifications
You must be signed in to change notification settings - Fork 33
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
Usage - How to setup/init a repository? #6
Comments
You should be able to do
(btw, got it from the demo from a all-hands that starts at 13:50 in this recording: https://ipfs.io/ipfs/QmQtTekDaG4475fqv8oVKanLo11C8rSKeVcbKee28WR1zd/2017-08-07%2012.03.58%20IPFS%20All%20Hands%20Call%20779351365.mp4 ) Also, the fetch of the |
Thanks for the video. I got it working now! :-) I forgot to do a
For me it just stops fetching after a long time... but it doesn't finish. If you abort with Ctrl+c the folder is gone again and it starts from scratch the next time until it stops (I guess at the same file). Maybe the demo source is not fully available on IPFS anymore and instead of a timeout, it keeps waiting forever until the rest of the data is available on at least one node again? |
Do you have/had files larger than 2mb in the repo? If yes then this is a limitation of ipfs (maximum block size is set to 2mb, larger blocks will not be transferred with bitswap). One idea I have to fix that is to put some sort of dictionary in root of the ipns repos (they are WIP, this feature wold be really useful) |
@magik6k I'm using the exact command you have in the readme, I don't know how that repository is structured at all.
|
Anyway, I'm super stoked! IPFS + Git is one of the killer use cases for IPFS right now!! Keep up the great work! |
Is it possible to get/find out the IPFS Hash (starting with "Qm...") of a record in IPLD? |
So the example hash (which pointed at go-ipfs repo) had 3 objects larger than the limit.. I updated it in f2fc4db (now it points at ipfs/ipfs which should work fine) |
There is no direct mapping between the two - you need a separate viewer. One WIP thing is called IGiS - in-browser app using js-ipfs which allows you to view (and potentially interact/manipulate in future) git repositories.
Note that js-ipfs may not be able to resolve your repositories unless you connect directly to your node (this will soon not be needed as dht/relay js-ipfs features are developed). You can do that in the app with |
So a workaround/process would be:
And share that hash. I just wonder if the same data is then twice in IPFS? |
Unfortunately yes - deduplicating data between different formats would require hashing the data with all supported hash algorithms, checking for duplicates in the ipfs datastore, and then somehow linking the data together. Doing this would be really expensive cpu/io wise. |
OK. It was not clear to me, that the data pushed to git is in a different format then it is "normally"... |
One more question: Assume I pull/push on a workstation which is not 24/7 "online".
So that when I push (git push) something to IPFS on my local workstation, it is additionally available at least on one 24/7 node in the IPFS network? It doesn't need to be a random node, would be fine if I could explicitly define another node I control. |
It's not,
When you push you get a line like this:
|
You can also create git CIDv1 from sha1 hash with this bash alias/function:
For the |
Which sha1? Of the last file I pushed? |
You call it with sha1 of latest commit - |
Then there must be something wrong with the alias function you gave me above. When I call it, it just keeps asking for input until I hit Ctrl-c. |
Hi,
the usage descriptions are very limited.
git clone ipld::20dae521ef399bcf95d4ddb3cefc0eeb49658d2a
somewhat works (it doesn't finish and hangs at some point).So how do I initialize my own repository to push it via IPLD?
git init
and thengit push ipld::
doesn't do the trick! I need to configure the remote master somehow. How do I calculate the hash for my repository?Thanks!
The text was updated successfully, but these errors were encountered: