Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 353 Bytes

git-stash.md

File metadata and controls

20 lines (16 loc) · 353 Bytes

Git Stash

The git stash command temporarily saves changes.

Usage

git stash          # Save changes
git stash pop      # Reapply changes

Explanation

  • Use git stash to save uncommitted changes and switch branches.

  • Use git stash pop to reapply the saved changes.

Example

git stash
git checkout main
git stash pop