Today I Learned: collection of notes, tips and tricks and stuff I learn from day to day working with computers and technology as a developer

View project on GitHub

Create branch from tag

Sometime you need to inspect the code behind a tag (and in theory patch/hotfix)

$ git checkout tags/<tag_name> -b <branch_name>


$ git checkout tags/2.0.0 -b 2.0.1-hotfix

Or just for inspection

$ git checkout tags/<tag_name>

The latter can always be branched, if need be.