About 12,800 results
Open links in new tab
  1. Git - git-clone Documentation

    Create a shallow clone with a history truncated to the specified number of commits. Implies --single-branch unless --no-single-branch is given to fetch the histories near the tips of all branches.

  2. How to Use Git Shallow Clone for Faster Repository Cloning

    Jul 14, 2023 · The easiest way to shallow clone is to just use the --depth parameter on git clone. This will limit the clone to a certain number, like 100 commits before the current repository HEAD. All other …

  3. Git shallow clone: what it is, when to use it, and how

    Apr 18, 2025 · Shallow clones are a great way to speed up development workflows, especially in CI or when working with large repos. Just be aware of the trade-offs — and you can always unshallow …

  4. Git Shallow Clone and Fetching Full History - GitHub

    What is a Shallow Clone? A shallow clone in Git is a repository clone with a limited commit history. By specifying a depth, you can clone the repository with only the latest commits. This is useful for saving …

  5. Git Shallow Clone: Optimizing Repository Size - GeeksforGeeks

    May 24, 2024 · A shallow clone in Git is a clone that contains only a subset of the commit history of a repository. By default, when you clone a repository, Git fetches all the commit history, tags, and …

  6. Get up to speed with partial clone and shallow clone

    Dec 21, 2020 · Partial clones are relatively new to Git, but there is an older feature that does something very similar to a treeless clone: shallow clones. Shallow clones use the --depth=<N> parameter in git …

  7. Git Shallow Clone: When Less is More | Learn Version Control with Git

    Learn how to use Git shallow clone to reduce repository size, speed up cloning, and optimize your development workflow with minimal history retrieval.

  8. Shallow Clones in Git: When and How to Use Them

    Nov 3, 2025 · Understanding when and how to use shallow clones, and how to manage them by deepening or unshallowing when necessary, ensures you can leverage this feature effectively to …

  9. Git Shallow Clone: An In-Depth 3000+ Word Guide - TheLinuxCode

    Dec 27, 2023 · What is Shallow Cloning in Git? Let‘s start with the basics – a quick overview of what shallow cloning is. By default, when you git clone a repository, Git downloads the entire commit …

  10. How to perform a shallow git clone - TheServerSide

    Jul 4, 2025 · That’s how you perform a shallow git clone. You specify a depth as an option in the clone command, and when the shallow git clone command completes, your local repo will only contain a …