GitHub Desktop is a user-friendly desktop application that allows you to interact with your GitHub repositories. One of the features of GitHub Desktop is the ability to “stash” your changes.
When you are working on a feature or a bugfix, you may not want to commit your changes right away, but you also don’t want to lose your progress. In this case, you can “stash” your changes. Stashing saves your changes in a temporary place, so you can switch to a different branch, pull in new changes, or do other tasks without losing your work.
To stash your changes in GitHub Desktop, select the repository that you want to stash changes in, then click on the “Current Branch” dropdown menu. In the dropdown menu you will see the option of “Stash Changes”, select that and the changes you made will be stored in a stash.
You can later reapply the stash by going to the repository and selecting the option of “Stashes” in the “Current Branch” dropdown menu. You will see the stashes that you made and can apply them again.
It’s important to note that stashing changes is not the same as committing changes, Stashed changes are stored in a temporary location and will be discarded if not reapplied. Committed changes are permanent and will be part of the repository’s history.