git: Can I tag a single file?








The answer is NO. "A tag is a pointer to a specific revision of the repository. The individual files do not themselves have versions separate from that of the repository."

To tag the current head:
git tag -m "new tag" stable-1.0
git push --tags origin master



No comments:

Post a Comment