I’m having some troubles right now I am using git flow and created a feature called feature/newbranch and I was working on develop. I wanted to stash my changes and save them to feature/newbranch so I thought all I had to do was:
git stash (in develop)
git checkout 'feature/newbranch'
git stash pop
This puts changes in my newbranch but when I move to develop
git checkout develop
All of my stashed changes are still there.
Am I doing something wrong?
Nothing is put into a branch until you commit it. What you are doing here is putting the contents of the stash into the working tree.
You should get better idea by reading top answer to following question: Difference between HEAD / Working Tree / Index in Git