Can you git clone -partial? I am looking to make a mobile app and it would be nice to have.
- From
- James Hancock <james@bookstobrains.com>
- Date
- Oct 1, 2014, 16:51 UTC
- Message-ID
- <CAOHoyPr3E9U3XPEjmrSNkT0okHcRN2H7OKyrt-Ar3WMMDL=4vw@mail.gmail.com>
i am thinking about developing an app and I want to integrate it with git but I only want to store a portion of the file on disk. It is going to be in a mobile enviornment and I want to just get one file or a small group of files.
I read that you can clone and then only look at one peice but is it possible just to clone one peice? And if not what would it take? Maybe this is a feature people would like to have. Just hypothetically, what would need to happen?
Either git clonepartial /repo /file/or/folder/in/repo Or Git clone -partial /repo /file/or/folder/in/repo
I guess you would need to keep the projects .git in order to maintain consistency, or would you? I'm going to do some more research about what .git does exactly.
Cheers, James