šŸŽ“
1 / 15

304 — Tags and Releases

Learn to mark important points in your repository's history with tags. Master semantic versioning and create releases for your projects.

Learning Objectives

1
Understand the difference between lightweight and annotated tags
2
Create and manage tags
3
Push tags to remote repositories
4
Check out specific versions
5
Follow semantic versioning conventions
Step 1

Create project for tagging

Set up a repository with some commits representing a project's evolution.

Commands to Run

mkdir -p ~/git-practice/lesson-304
cd ~/git-practice/lesson-304
git init
echo "# API Server" > README.md
echo "const express = require('express');" > server.js
git add .
git commit -m "Initial commit: Set up project structure"

What This Does

Tags are typically used to mark release points in your project (v1.0.0, v2.0.0, etc.). We'll simulate a project that evolves through multiple versions.

Expected Outcome

Repository initialized with initial project files.

Pro Tips

  • 1
    Tags are like bookmarks in your commit history
  • 2
    They mark important milestones or releases

All Steps (0 / 15 completed)