for keeping file changes without commit. for example, you're doing your new feature and then bug found on production so you need to switch to new branch for hot fix. you can use git stash to keep your changes on feature branch and when you finish fixing bug you can use git stash pop for get back your file changes
for keeping file changes without commit. for example, you're doing your new feature and then bug found on production so you need to switch to new branch for hot fix. you can use
git stash
to keep your changes on feature branch and when you finish fixing bug you can usegit stash pop
for get back your file changesThis is my favorite too!!
git stash apply
I always find myself using
git stash -u
so it stashes new files in addition to changed files