4

There is a very large repo I am working with. For better or worse, even using git clone --depth=1 yields a few MB. The whole repo exceeds 1GB, and I do not want that much information.

After cloning a repo with git clone --depth=X how does one add more depth?

In my case, I initially set the depth to 1. Is there a way to get all of the details up to a depth of 20 without deleting and recloning the repo with the new depth value?

bremen_matt
  • 6,902
  • 7
  • 42
  • 90

1 Answers1

4

Use

git fetch --unshallow 

To convert to a full clone, or

git fetch --deepen 20

To increase to a specific number

Vijfhoek
  • 37
  • 1
  • 9
exussum
  • 18,275
  • 8
  • 32
  • 65