{"thread":{"id":"21402","subject":"Is it possible to use git as a remote file storage without making any local repos?","startedAt":"2009-10-28T12:09:09Z","lastAt":"2009-10-28T18:33:34Z","messageCount":2,"participants":["Matvejchikov Ilya","Avery Pennarun"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"126131","messageId":"8496f91a0910280509p49447d6egd7c07b382657c375@mail.gmail.com","threadId":"21402","inReplyTo":null,"subject":"Is it possible to use git as a remote file storage without making any local repos?","fromName":"Matvejchikov Ilya","fromEmail":"matvejchikov@gmail.com","sentAt":"2009-10-28T12:09:09Z","receivedAt":"2009-10-28T12:09:09Z","isPatch":false,"sender":{"key":"matvejchikov@gmail.com","avatar":null},"body":"Hi all,\n\nMy question is about using git as a remote file storage.\n\nI have a remote storage server with a git-daemon running and I want to\nbe able to put some data in that repo\nin a way like 'git hash-object -w <object>'. The general problem for\nme is that I don't want to create any local\ngit repositories that is needed by 'pit push ...' etc.\n\nSo, is it possible to use git for remote storage purposes without\nmaking local repository?\n\nThanks.\n"},{"id":"126173","messageId":"32541b130910281133nf79e03fy208b7f9fdb86bd05@mail.gmail.com","threadId":"21402","inReplyTo":"8496f91a0910280509p49447d6egd7c07b382657c375@mail.gmail.com","subject":"Re: Is it possible to use git as a remote file storage without making any local repos?","fromName":"Avery Pennarun","fromEmail":"apenwarr@gmail.com","sentAt":"2009-10-28T18:33:34Z","receivedAt":"2009-10-28T18:33:34Z","isPatch":false,"sender":{"key":"apenwarr@gmail.com","avatar":"https://avatars.githubusercontent.com/u/20592?v=4"},"body":"On Wed, Oct 28, 2009 at 8:09 AM, Matvejchikov Ilya\n<matvejchikov@gmail.com> wrote:\n> I have a remote storage server with a git-daemon running and I want to\n> be able to put some data in that repo\n> in a way like 'git hash-object -w <object>'. The general problem for\n> me is that I don't want to create any local\n> git repositories that is needed by 'pit push ...' etc.\n>\n> So, is it possible to use git for remote storage purposes without\n> making local repository?\n\nThis functionality isn't built into git (and it might be considered a\nsecurity hole, strictly speaking, if a repository let you download any\nobject by default).  However, it would be pretty easy to create your\nown server that does this.\n\nFor example, you could make one CGI script that dumps its POST data\ninto a pipe to \"git hash-object --stdin -w\"\n\nI've written a service similar to this at work.  It's relatively\nsimple to do a basic version. Of course, as you get into more\ncomplicated situations (what about multiple users updating the same\nfilename?  merges?  authentication?) it gets more complicated.  But I\nthink everybody would want this for a different reason, so it's\nunlikely that there'll ever be a single \"standard\" solution.\n\nHave fun,\n\nAvery\n"}]}