Stashing
Understand what is stashing.
Git Stash
Let's say that the Developer A is working on a third story on the develop branch. Suddenly, the Developer B says that there are some critical bugs that needs to be corrected immediately on the main branch.
Before the Developer A checkout to the main branch, it's necessary to place the changes made to the third story somewhere in order to have a clean working area if we want to solve the bugs on the main branch. As the story isn't finished yet, the Developer A don't want to commit it to his branch (develop).
In this case, we can use git stash
command to stash all changes in the working area. We can keep on pushing the changes to the stash and the changes will simlpy pile up (treat like queue FIFO).