git stash
With Git, you can put your current set of changes onto a virtual shelf called a stash. Stashes are useful, for example, to put aside a set of changes to work on higher priority tasks or to pull in new changes from another repository.
Stash local changes
To stash all local changes, go to Tools > Git > Local Repository > Stash and select Stash. The working copy is reset to the state it had after the last commit.
To save the current state of your unstaged files and reset the repository to its staged state, select Stash Unstaged Files.
Manage stashed changes
To display a dialog that shows all known stashes with options to restore, display or delete them, select Stashes.
Take a snapshot
To save a snapshot of your current work under a name for later reference, select Take Snapshot. The working copy is not changed. For example, if you want to try something and find out later that it does not work, you can discard the changes and return to the state of the snapshot.
Pop stashes
To remove a single stashed state from the stash list and apply it on top of the current working tree state, go to Tools > Git > Local Repository > Stash and select Stash Pop.
See also How To: Use Git and Git.
Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.