how to tag an old commit with a version code example Example: git tag a previous commit git tag -a v1.2 9fceb02 -m "Message here"