Skip to content

that-guy-iain/git-atomic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git Workflow for Atomic Commits

A Git extension to allow atomic commits in a pure fashion to allow you to avoid your wip base code being committed.

You can read more at https://iain-rocks.pages.dev/blog/2025/12/13/rejecting-rebase-and-stack-diffs-my-way-of-doing-atomic-commits while I work on the first release.

How It Works

  1. WIP Tracking: When you run git wstash start, it creates a tracker file in .git/ that records which files are WIP
  2. Selective Commits: git wcommit temporarily stashes WIP files before committing, then restores them
  3. Context Switching: git wcheckout stashes WIP when leaving a branch and restores it when returning

This keeps your exploratory code available while ensuring only production-ready changes make it into commits.

Benefits

  • Cleaner History: Only meaningful changes in commits, no debug code or scaffolding
  • Atomic Commits: Each commit is focused and self-contained
  • Flexible Development: Keep test scaffolding and exploration code around without worry
  • Context Preservation: Switch branches without losing your working state

About

A git extension for enabling atomic commits in a pure manner

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages