A shallow clone in Github is a clone of a repository with truncated history of commits, unlike a regular clone, which downloads the entire history of a repository a shallow clone limits the number of commits.
Read in detail: https://graphite.dev/guides/git-shallow-clone
How to shallow clone
git clone --depth <depth> <repo-url>
—depth option works by instructing git to fetch only last n
commits