Re: git sparce checkout
| From: | Alexander Moskaliov | Date: | Sat, 31 Dec 2011 10:46:13 +0000 |
| Subject: | Re: git sparce checkout | ||
| References: | 1 2 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969383543@lists.php.net to get a copy of this message | ||
Some like this:
init empty rep:
> mkdir doctestru && cd doctestru
> git init
>
config for remote rep:
> git remote add -f origin git://git.php.net/playground.git
> git config branch.master.remote origin
> git config branch.master.merge refs/heads/master
>
config sparse checkout:
> git config core.sparsecheckout true
> echo PHPDoE_git_test/ru/ > .git/info/sparse-checkout
>
get files:
> git pull
now we have only PHPDoE_git_test/ru/ directory
I did not use git clone, becouse we do not want to get all files.
With regards, Alexander Moskaliov
Irker@irker.net
2011/12/31 Alexey Shein <confik@gmail.com>:
> It seems kinda tricky, have you tested it? Does it work at all with our
docs?
>
> 2011/12/31 Alexander Moskaliov <irker@irker.net>:
>> Hello!
>> Was there any discussion about "sparse checkout" in git 1.7?
>> I find only that we can not use submodules for php-doc.
>> I think sparce checkout what we need.
>>
>> Git manual
http://schacon.github.com/git/git-read-tree.html#_sparse_checkout
.
>> For example I can checkout only ru, en and doc-base directory.
>>
>>
>> With regards, Alexander Moskaliov
>> Irker@irker.net
>
>
>
> --
> Regards,
> Shein Alexey