All of lore.kernel.org
 help / color / mirror / Atom feed
* Problem using git
@ 2014-06-12  4:28 Ali Aminian
  2014-06-12  4:58 ` Aruna Hewapathirane
  0 siblings, 1 reply; 3+ messages in thread
From: Ali Aminian @ 2014-06-12  4:28 UTC (permalink / raw)
  To: kernelnewbies

Hello
The kernel tar file from "www.kernel.org" is around 70MB.
but when i want to download the kernel using git it seems it's really huge.
git shows 1% for 25MB. Is it how it should be or am i missing something?
the git command i used is this: "git clone
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git"

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Problem using git
  2014-06-12  4:28 Problem using git Ali Aminian
@ 2014-06-12  4:58 ` Aruna Hewapathirane
  2014-06-12  6:03   ` Andev
  0 siblings, 1 reply; 3+ messages in thread
From: Aruna Hewapathirane @ 2014-06-12  4:58 UTC (permalink / raw)
  To: kernelnewbies

>>The kernel tar file from "www.kernel.org" is around 70MB.
>>but when i want to download the kernel using git it seems it's really
huge.
>>git shows 1% for 25MB. Is it how it should be or am i missing something?

This will download a local copy of the *entire* revision history (back to
2.6.12-rc2), which takes a couple hundred megabytes.

So what your experiencing is quite normal :)

It extracts the most recent version of all the files into your linux-git
directory, but that's just a snapshot (generally referred to by git people
as your "working copy").

The history is actually stored in the subdirectory "linux-git/.git", and
the snapshot can be recreated from that (or changed to match any historical
version) via various git commands.

You start with an up-to-the-minute copy of the linux kernel source, which
you can use just like an extracted tarball (ignoring the extra files in the
".git" directory).

If you're interested in history from the bitkeeper days (before
2.6.12-rc2), that's stored in a seperate repository,
"*git://git.kernel.org/pub/scm/linux/kernel/git/tglx/history.git
<http://git.kernel.org/pub/scm/linux/kernel/git/tglx/history.git>*".

Reference : http://landley.net/writing/git-bisect-howto.html
Aruna
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140612/48a77acf/attachment.html 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Problem using git
  2014-06-12  4:58 ` Aruna Hewapathirane
@ 2014-06-12  6:03   ` Andev
  0 siblings, 0 replies; 3+ messages in thread
From: Andev @ 2014-06-12  6:03 UTC (permalink / raw)
  To: kernelnewbies

On Thu, Jun 12, 2014 at 12:58 AM, Aruna Hewapathirane
<aruna.hewapathirane@gmail.com> wrote:
>>>The kernel tar file from "www.kernel.org" is around 70MB.
>>>but when i want to download the kernel using git it seems it's really
>>> huge.
>>>git shows 1% for 25MB. Is it how it should be or am i missing something?
>
> This will download a local copy of the entire revision history (back to
> 2.6.12-rc2), which takes a couple hundred megabytes.
>
> So what your experiencing is quite normal :)
>
> It extracts the most recent version of all the files into your linux-git
> directory, but that's just a snapshot (generally referred to by git people
> as your "working copy").
>
> The history is actually stored in the subdirectory "linux-git/.git", and the
> snapshot can be recreated from that (or changed to match any historical
> version) via various git commands.
>
> You start with an up-to-the-minute copy of the linux kernel source, which
> you can use just like an extracted tarball (ignoring the extra files in the
> ".git" directory).
>

You can limit the amount of history you download using the --depth
option of git.

http://git-scm.com/docs/git-clone

So for a very small download, you would do something like:

$ git clone --depth 1
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-06-12  6:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-12  4:28 Problem using git Ali Aminian
2014-06-12  4:58 ` Aruna Hewapathirane
2014-06-12  6:03   ` Andev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.