Git 储藏库

使用 Git,你可以把当前的改动放在一个虚拟的架子上,这个架子被称为 "Stash"。储藏库很有用,例如,可以把一组修改放在一边,以便处理优先级更高的任务,或从另一个仓库拉入新的修改。

储藏本地变更

要隐藏所有本地变更,请访问Tools >Git >Local Repository >Stash 并选择Stash 。工作副本将重置为上次提交后的状态。

要保存未暂存文件的当前状态并将版本库重置为暂存状态,请选择Stash Unstaged Files

管理隐藏的更改

要显示一个显示所有已知隐藏更改的对话框,并提供还原、显示或删除这些更改的选项,请选择Stashes

保存快照

要以某个名称保存当前工作的快照以供日后参考,请选择Take Snapshot 。工作副本不会更改。例如,如果你想尝试某项工作,但后来发现行不通,你可以放弃更改并返回快照状态。

弹出存储

要从储藏列表中移除单个储藏状态并将其应用到当前工作树状态之上,请访问Tools >Git >Local Repository >Stash 并选择Stash Pop

另请参阅 如何使用 GitGit

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.