bashadvanced

Stash Workflow

Git workflow: stash-workflow

bash
#!/usr/bin/env bash
set -euo pipefail

git stash push -m "wip: hotfix prep"
git checkout main
git pull --ff-only
git checkout -
git stash pop

Use Cases

  • version control
  • collaboration

Tags

Related Snippets

Similar patterns you can reuse in the same workflow.