« VLC pre-alpha for Android 2.1 – Jan 2, 2012 | Home | Android codec benchmarks »
Deepen an existing shallow clone with git
By admin | January 31, 2012
In git, the new revolutionary DVCS system, to shallow clone a repository means to check out only the latest snapshot of a git repository, unlike a normal clone which pulls the entire repository. A shallow git repository can save bandwidth and take up less space.
git clone --depth=1 git://repo.example.com/mycoolapp
However, let’s say that once you checkout the project, compile it and decide that you want to contribute to it, then a shallow clone would probably not suffice. In this case, one can deepen the repository by using the following command inside the git repository, where n = number of revisions to deepen to:
git fetch --depth=n origin master
Saves more than having to re-clone everything from scratch and lose your working tree.
If you found this article helpful or interesting, please help Compdigitec spread the word. Don’t forget to subscribe to Compdigitec Labs for more useful and interesting articles!
Topics: Linux | 25 Comments »
February 5th, 2022 at 20:22
… [Trackback]
[…] Find More on that Topic: compdigitec.com/labs/2012/01/31/deepen-an-existing-shallow-clone-with-git/ […]
March 31st, 2022 at 10:03
… [Trackback]
[…] Read More on that Topic: compdigitec.com/labs/2012/01/31/deepen-an-existing-shallow-clone-with-git/ […]
April 14th, 2022 at 21:45
… [Trackback]
[…] Find More on that Topic: compdigitec.com/labs/2012/01/31/deepen-an-existing-shallow-clone-with-git/ […]
May 1st, 2022 at 18:45
… [Trackback]
[…] Information on that Topic: compdigitec.com/labs/2012/01/31/deepen-an-existing-shallow-clone-with-git/ […]
May 23rd, 2022 at 02:00
… [Trackback]
[…] There you will find 93827 more Information on that Topic: compdigitec.com/labs/2012/01/31/deepen-an-existing-shallow-clone-with-git/ […]
June 1st, 2022 at 04:27
… [Trackback]
[…] Read More Info here on that Topic: compdigitec.com/labs/2012/01/31/deepen-an-existing-shallow-clone-with-git/ […]
June 30th, 2022 at 07:23
… [Trackback]
[…] Find More here to that Topic: compdigitec.com/labs/2012/01/31/deepen-an-existing-shallow-clone-with-git/ […]
July 22nd, 2022 at 14:01
… [Trackback]
[…] Find More on that Topic: compdigitec.com/labs/2012/01/31/deepen-an-existing-shallow-clone-with-git/ […]
July 23rd, 2022 at 18:52
… [Trackback]
[…] Read More to that Topic: compdigitec.com/labs/2012/01/31/deepen-an-existing-shallow-clone-with-git/ […]
July 30th, 2022 at 12:49
… [Trackback]
[…] Find More Info here to that Topic: compdigitec.com/labs/2012/01/31/deepen-an-existing-shallow-clone-with-git/ […]
August 8th, 2022 at 18:18
… [Trackback]
[…] Information on that Topic: compdigitec.com/labs/2012/01/31/deepen-an-existing-shallow-clone-with-git/ […]
August 11th, 2022 at 00:27
… [Trackback]
[…] Find More on that Topic: compdigitec.com/labs/2012/01/31/deepen-an-existing-shallow-clone-with-git/ […]
August 21st, 2022 at 10:24
… [Trackback]
[…] Read More Information here to that Topic: compdigitec.com/labs/2012/01/31/deepen-an-existing-shallow-clone-with-git/ […]
August 28th, 2022 at 02:20
… [Trackback]
[…] Read More to that Topic: compdigitec.com/labs/2012/01/31/deepen-an-existing-shallow-clone-with-git/ […]
September 27th, 2022 at 11:36
… [Trackback]
[…] Find More Information here to that Topic: compdigitec.com/labs/2012/01/31/deepen-an-existing-shallow-clone-with-git/ […]
October 15th, 2022 at 04:50
… [Trackback]
[…] Read More Information here to that Topic: compdigitec.com/labs/2012/01/31/deepen-an-existing-shallow-clone-with-git/ […]
November 3rd, 2022 at 17:16
… [Trackback]
[…] Here you will find 67492 additional Info to that Topic: compdigitec.com/labs/2012/01/31/deepen-an-existing-shallow-clone-with-git/ […]
November 18th, 2022 at 03:01
… [Trackback]
[…] Find More Info here to that Topic: compdigitec.com/labs/2012/01/31/deepen-an-existing-shallow-clone-with-git/ […]
January 25th, 2023 at 18:18
… [Trackback]
[…] Find More here to that Topic: compdigitec.com/labs/2012/01/31/deepen-an-existing-shallow-clone-with-git/ […]
February 23rd, 2023 at 17:19
… [Trackback]
[…] Find More to that Topic: compdigitec.com/labs/2012/01/31/deepen-an-existing-shallow-clone-with-git/ […]
March 1st, 2023 at 20:32
… [Trackback]
[…] Info on that Topic: compdigitec.com/labs/2012/01/31/deepen-an-existing-shallow-clone-with-git/ […]
March 11th, 2023 at 00:45
… [Trackback]
[…] There you can find 82564 more Info to that Topic: compdigitec.com/labs/2012/01/31/deepen-an-existing-shallow-clone-with-git/ […]
March 11th, 2023 at 10:31
… [Trackback]
[…] Read More Information here to that Topic: compdigitec.com/labs/2012/01/31/deepen-an-existing-shallow-clone-with-git/ […]
March 21st, 2023 at 07:29
… [Trackback]
[…] Find More to that Topic: compdigitec.com/labs/2012/01/31/deepen-an-existing-shallow-clone-with-git/ […]
March 28th, 2023 at 05:41
… [Trackback]
[…] Find More on on that Topic: compdigitec.com/labs/2012/01/31/deepen-an-existing-shallow-clone-with-git/ […]