Skip to content

MaxRemyDev/DONT-COMMIT-JUST-SAVE

Repository files navigation

DONT COMMIT JUST SAVE

A VSCode extension that blocks git pushes containing commits with 'DONT COMMIT JUST SAVE' message.

Screenshot 2024-12-24 at 01 00 26

Features

  • Automatically blocks pushes containing commits with 'DONT COMMIT JUST SAVE' message
  • Shows a clear modal dialog in VS Code when a push is blocked
  • Works with all git commands (VS Code UI, terminal, external git clients)
  • Quick insert button in Source Control view to add "DONT COMMIT JUST SAVE" message
  • Reset button to safely remove DONT COMMIT JUST SAVE commits while preserving other commits
  • Reset history tracking with ability to undo recent resets
  • Warning dialog with detailed risk explanation before reset operations
  • Detailed operation logs with command history and execution times
  • Show Details button to view operation logs for reset and restore operations
  • Automatic blocking of operations that would cause conflicts
  • Smart detection of merge conflicts and patch failures
  • Detailed error messages with conflict locations
  • No configuration needed

Usage

  1. Install the extension
  2. The extension will automatically activate for any git repository
  3. Use the save button (💾) in the Source Control title bar to quickly insert "DONT COMMIT JUST SAVE"
  4. If you try to push a commit containing 'DONT COMMIT JUST SAVE' in its message, the push will be blocked
  5. You'll see a modal dialog in VS Code explaining why the push was blocked
  6. Use the history button (🕒) to reset DONT COMMIT JUST SAVE commits while keeping other commits intact
  7. A warning dialog will appear explaining potential risks and recovery options
  8. Use the history-clear button (🔄) to view and undo recent resets if needed

Safety Features

  • Warning dialog before risky operations
  • Detailed explanation of potential conflicts
  • Ability to cancel operations
  • Reset history for recovery
  • Safe staging of changes

Requirements

  • VS Code 1.85.0 or higher
  • Git installed on your system

Extension Settings

This extension doesn't require any settings.

Known Issues

None at the moment.

License

MIT