#!/bin/bash # Clear the changelog file after git commit # Usage: ./clear-changelog.sh echo "Clearing changelog..." # Clear the changelog content but keep the structure cat > CHANGELOG.md << 'EOF' # Changelog This file tracks changes made during development sessions. After each git commit, this file is cleared to start fresh. ## Current Session Changes ### Commands Enhanced - ### Features Added - ### Technical Improvements - ### Files Modified - ## Usage 1. **During Development**: Add brief notes about changes made 2. **Before Commit**: Review changes and format for commit message 3. **After Commit**: Clear this file to start fresh for next session ## Commit Message Format Use the following format for commit messages: ``` feat: brief description of changes - Key change 1 - Key change 2 - Key change 3 Files: file1.rs, file2.rs ``` EOF echo "Changelog cleared successfully!" echo "Ready for next development session."