git stash changes and change branch code example
Example 1: git stash apply item
git stash apply stash@{index}
Example 2: how to stash changes and use in another brunch
git stash
git checkout -b xxx
git stash pop
git stash apply stash@{index}
git stash
git checkout -b xxx
git stash pop