From: Alter Depp Date: Thu, 25 Feb 2016 17:54:59 GMT Subject: git submodule add --single-branch Message-ID: <8e46e2f93895fb33421e7b09ccfe7de5@www.hilie.de> I would like to do a shallow clone of a submodule like this: $ git submodule add --branch master --single-branch --depth 5 repo dir but it doesn't work. I think '--single-branch' is not yet implemented for submodules. With the clone command it works: $ git clone --branch master --single-branch --depth 5 repo dir Is it possible to do something like this with a submodule? Stefan