git stash push -m <message>

Stashes the changes in the working directory with a custom message.

This command stashes all modifications in the working directory that are marked as changes (i.e., listed in the output of git status) and stages them for later use, allowing you to revert your working directory to match the HEAD commit.

The -m flag allows a custom message to be added to the stash for identification purposes. -m is the short version of --message.

Sign in to enable bookmarking, reminders, progress-tracking and more...