profile for joel goldstick at Stack Overflow, Q&A for professional and enthusiast programmers

Tags and Branches

Categories: git

Published on April 19, 2016

Last Modified on April 26, 2016

Git allows you to tag a specific version of your project. One use for this would be milestones -- version 0.9, version 1.0, etc.

Git also allows you to branch off from your main project to try some experiment, or add new features to your program in a way that the main branch stays untouched. Later on, you may decide that the experiment didn't pan out, and you can delete the branch. Or, if successful, you can merge the branched files back into the main branch.

To add a tag to your repository:

git tag -a <tag-name> -m "description of tag"

Then type: git tag to list your tags