less than 1 minute read

To save a snapshot of your current work in git, try this command:

git stash save "snapshot: $(date)" && git stash apply "stash@{0}"

This saves your current work in a timestamped stash, without removing it.

Via jwworth/til.

Tags: ,

Categories:

Updated:

Leave a comment