Suppose the current commit is A, and then I create a new commit B, and then I make some changes in the working tree directory. Now I run git stash push. What does git stash push stash? Is it only the changes that I have made in the working tree directory since B was created, or also the changes that I made into commit B since A?
If I then checkout commit A, and run git stash pop, will that apply the changes that I made to the working directory after creating commit B, or also the changes that I made into commit B since A?
Does git stash push stash the changes to the last committed state (i.e. the differences between the current working tree directory and the last committed state), or stash just the current state?
git stashandgit stash push? Because although the title made me think that also for some reason, reading the body of the question revealed a whole different topic. Am I missing something, guys?