Skip to content

Instantly share code, notes, and snippets.

@b2977053
Created March 26, 2020 10:58
Show Gist options
  • Save b2977053/cb014166e5a2a2c77cf409ebbf864fac to your computer and use it in GitHub Desktop.
Save b2977053/cb014166e5a2a2c77cf409ebbf864fac to your computer and use it in GitHub Desktop.
mkdir git-stash
cd git-stash
git init
echo 'Initial commit' > a.txt
git add .
git commit -m 'Initial commit'
echo 'v2' > a.txt
git add .
echo 'v3' > a.txt
git stash -u
#--- --- ---
echo 'v4' > a.txt
git add .
git stash save
echo 'v5' > a.txt
git add .
git stash save 'echo 'v5' > a.txt'
#--- --- ---
git stash list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment