Save-Work Save your work and (by default) publish it to where the project is shared.
Description
Save-Work is the main GitEasy command for preserving work. It runs three steps in one: it stages every change, records them as a saved point with your message, and then publishes the saved point to the project's published location unless you ask it not to.
Before publishing, Save-Work pulls down any peer updates and replays your saved point on top, so a teammate's recent push does not block yours. Any local changes are temporarily set aside and restored automatically.
Save-Work does several safety checks before touching anything: it refuses to run inside an unfinished merge, rebase, cherry-pick, revert, or bisect; it refuses to save while there are unfinished conflicts; and it tells you in plain English when something is missing.
When your work area has nothing new to save but you have saved-but-not-yet-published changes, Save-Work publishes those for you. When there is nothing local and nothing pending, it tells you "No changes to save."
With -BumpVersion, Save-Work also bumps the module manifest version (Major / Minor / Build / Revision) and prefixes your saved-point note with the new version number. Useful when you maintain a PowerShell module and want every saved point to carry a version stamp.
Each Save-Work run writes a self-contained log file. Successful runs log silently. Failures throw a plain-English message and point at the log file with the technical detail.
Recipes
Save-Work 'Update README'
Save-Work 'Local checkpoint before refactor' -NoPush
Save-Work 'Add Search-History' -BumpVersion -BumpKind Minor
Notes
Safety:
- Refuses to run when an unfinished merge, rebase, cherry-pick, revert, or bisect is in progress.
- Refuses to run when there are unfinished conflicts; lists the files that need attention.
- Treats LF/CRLF warnings as expected output, not as conflicts.
- Writes commit messages without UTF-8 BOM.
- Hides raw Git output from the user. On failure, the thrown message points at a log file with the full technical detail.
Parameters
Was this page helpful? Report an issue or suggest an improvement →