4 ms·
What GP wanted was to stash a history of commits, not just the current state of the working tree. `git stash` is fundamentally unable to do that.
by Sharlin 7y ago
What GP wanted was to stash a history of commits, not just the current state of the working tree. `git stash` is fundamentally unable to do that.
- johnmaguire2013 7y agoThat's just called a branch. What GP described was committing all their changes into a single WIP commit.
- wtetzner 7y agoThey were describing many different WIP commits, and then later squashing them to a "proper" commit.
- johnmaguire2013 7y agoThat's a branch. > Then, when I return to the branch, I'll check if the previous commit was WIP (`git log -1`), and if so will reset it (`git reset HEAD~1`). This is a single commit.