How to clone a specific ffmpeg version from git

git clone -b n6.1 --depth 1 https://git.ffmpeg.org/ffmpeg.git ffmpeg

This will clone versionĀ 6.1 (-b n6.1) and only perform a shallow clone (i.e. only download the neccessary files for this specific version).