Tags
How can I use tags in Git?
Transcript
Today, you’ll see how you can use tags in Git. Tags allow you to mark important points in your project’s history - for example, a release.
Let’s mark one of our commits and tag it as “version 1”. Simply right-click the commit you want to tag and select “Create new tag”. You can then provide a name for the tag. And, optionally, a descriptive message.
Tower then shows the tag in two places:
- First, you’ll find it as a badge on the commit item in the list.
- And second, you’ll find it in the “tags” section in the sidebar.
This is where Tower lists all of the tags in your local repository. To see that optional message that a tag can have, simply wait for the tooltip to show.
Deleting a tag is as easy as right-clicking it and selecting “delete”.
Before we finish this video, there’s one more thing to know: When you push changes to a remote repository, tags are NOT automatically included. You have to explicitly tell Git if you want to also push tags. You can do this here in the Push dialog.
That’s it for now. Thanks for watching - and see you soon in our next video!
Course outlineEpisode 16 of 24
- What is Version Control?
- Installing and Configuring Git
- A Basic Workflow of Version Control
- Creating a New Local Repository
- Cloning an Existing Repository
- Inspecting Local Changes
- Staging & Committing Changes
- Commit History
- Ignoring Files
- An Introduction to Branches
- Creating & Checking Out Branches
- Merging Branches
- Stashing Changes
- Dealing with Merge Conflicts
- Undoing Things
- Tags
- Introduction to Remote Repositories
- Connecting a Remote Repository
- Sharing Data on a Remote Repository
- Publishing a Local Repository on Remote
- Pushing Changes to a Remote
- Pulling & Fetching Changes
- Rebase as an Alternative to Merge
- Branching Workflows