What is the difference between shallow clone (git clone –depth) and a full clone?

Git Hard

Git — Hard

What is the difference between shallow clone (git clone –depth) and a full clone?

Key points

  • Shallow clones reduce download size by omitting historical data
  • Full clones enable comprehensive operations like `git bisect`
  • Commit history depth is the key differentiator
  • Certain Git operations are incompatible with shallow clones

Ready to go further?

Related questions