I would like to use this workflow:
- Stage some changes.
- Save the unstaged changes to the stash.
- Do some stuff with the things in stage (build, test, etc.).
- Commit.
- Restore the unstaged changes.
Is there a way to do step 2?
Example:
git init
echo one >file
git add file
git commit
echo two >>file
git add file
echo three >>file
git stash push
test
git commit
git stash pop