How to use mercurial or git subrepositories that are connected to the latest release tag?

I am looking for a solution that would allow me to use subrepositories that are getting not the HEAD and instead a specific RELEASE tag, or if possible the latest tag.

Is this possible, how should I implement this? Did anyone implemented this?

  • How to git revert a commit using a SHA
  • Why is my local Git branch detached?
  • How to remove remote git urls from xcode?
  • managing permissions between windows and mac git commiters
  • How do you use Git within Eclipse as it was intended?
  • Is it possible to convert an SVN branch into a new GIT repo?
  • git error :Unable to look up xyz.com (port <none>) (Servname not supported for ai_socktype)
  • git clone produces different permissions on different servers
  • Github commit message links
  • Git says: More than one value for the key difftool.vs2012.cmd
  • Git - push current branch shortcut
  • git clone gets gh-pages, I want it to clone master (from Github)
  • One Solution collect form web for “How to use mercurial or git subrepositories that are connected to the latest release tag?”

    I don’t know about git, but Mercurial sub-repositories don’t link to the head of the sub-repository but to a specific revision.

    To set the revision of a sub-repository, you update it to the revision that you want (in your case a specific tag) and then commit the main repository. That then links the main repository to the specific revision of the sub-repository.

    A good guide on Mercurial sub-repositories can be found here and the Mercurial sub-repository documentation is here.

    Git Baby is a git and github fan, let's start git clone.