Downloading a snapshot of a git repository
Sometimes you’d like a copy of a git repository, but don’t need the entire git history. For large repositories, the history can be slow to download and may consume a lot of disk space. The history is unnecessary when: Exploring or building at a specific branch or tag Building a git repository in a Dockerfile Scaffolding a project from a template In this post I show how to use the GitHub API to download a snapshot of a repository and show how this might look in a Dockerfile. Additionally, I describe degit, a project scaffolding tool that copies repositories from GitHub and other providers. ...