I'm new to git. I wanted to stash my changes and do a git pull origin master on my branch. The project that I'm working on has submodules.
Those are the commands I ran :
git status- I can see all of my changes ( submodules + the main project )git stash pushno errors or warnings. I ran this in the main directory of my projectgit status- All of the changes are gone ( submodules include )git pull origin master- works ( updates the submodules as well due to some configuration in our environment )git stash pop- no errors or warningsgit status- all the work done in the submodules is gone.
What happened ? I know that git stash is going to make commits for my stashed work and after that do a git git reset --hard. Why is my submodule work gone ? How do you correctly stash a project with submodules ?
Thanks