stash-config

stash workflow

Stash current changes, suffixing the provided message with the word 'config' and the current date & time.

For example, running git stash-config "MyApp working" could create a stash called MyApp working config 2025-12-04 09:37.

Usage: git stash-config "MyApp working"

CLI Command

git config --global alias.stash-config "!f() { git stash -u -m "$1 config $(date +%Y-%m-%d' '%H:%M)"; }; f"

.gitconfig Snippet

[alias]
  stash-config = !f() { git stash -u -m "$1 config $(date +%Y-%m-%d' '%H:%M)"; }; f