Skip to content
English
  • There are no suggestions because the search field is empty.

What is "stashing" in the desktop app?

Stashing allows you to temporarily store your pending changes without committing, though it is recommended that you commit instead of stashing

Stashing refers to the the ability to pause multiple changes to files that you may be working on. A stash allows you to make individual commits instead of one combined commit with multiple changes. You can call any of the changed files when you are ready to begin working on them again.

There may be situations where stashing your changes is not the best option, or where it may cause problems. For example, if you stash changes on one branch and then try to apply those changes on a different branch where the files have been changed, you may run into conflicts. If these conflicts are not easy to resolve, you may need to manually apply your changes instead of using stash.

Similarly, if you have untracked files in your working directory, Git will not stash them, so you may need to manually move those files or use another method to save them. Additionally, if you have already committed some changes and then decide to stash others, you may run into issues when trying to apply the stash later. Finally, if you are working in a team and have shared branches, stashing your changes can make it difficult for others to see your work, so it may be better to commit your changes and push them to a shared branch instead of stashing your changes.

 

GIF Recording 2023-05-01 at 8.23.04 AM

 

GIF Recording 2023-05-01 at 8.23.42 AM

 

 

Elements of the UI may have changed since the time of posting. For the most up-to-date information, refer to our Documentation.