Keep On Hacking

[How To] Checkout Tag On Git Submodules

November 20, 2019

To checkout, a tag on repo and all of its submodules, use the following commands.

# List available Tags
git tag

# Checkout a tag in the main repo.
git checkout <tagname>

# Initialize any uninitialized submodule and recursivesly update the Submodules.
git submodule update --init --recursive

GitHub Gist


Written by Daniel who lives and works in the beautiful city of Salem training dogs. You should follow me on Twitter

© 2020, Built with ❤️+ Gatsby