From: Jacob Keller Date: Fri, 03 Nov 2017 20:26:00 GMT Subject: Re: submodule using revision Message-ID: In-Reply-To: On Fri, Nov 3, 2017 at 6:42 AM, gregory grey wrote: > Hi guys. > > Currently git submodule only works with branch of the submodule in > question. Adding a functionality to work with a revision would be > great from my point of view. > > Proposed syntax is as follows: > git submodule add -r commit_sha git://some_repository.git > > > Thanks! > > > -- > > http://ror6ax.github.io/ You can get similar behavior by doing: git submodule add -r cd git checkout cd .. git ad git commit Thanks, Jake