git 如何使用 EGit 取消隐藏更改?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/16811519/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How can you unstash changes using EGit?
提问by Edd
When I switch branch with non-committed changes I'm given a prompt to stash my changes:
当我使用未提交的更改切换分支时,系统会提示我存储更改:
When I switch back to the branch with the stashed changes I can't see any of the non-committed changes.
当我切换回带有隐藏更改的分支时,我看不到任何未提交的更改。
Using EGit how can I retrieve the stashed changes?
使用 EGit 如何检索隐藏的更改?
回答by robinst
EGit 3.5 and later
EGit 3.5 及更高版本
In EGit 3.5 and later, there is a menu called Stashesin the Teamcontext menu. It provides an action to stash changes and also lists any existing stashes. The same menu is also available as a toolbar icon and in the Git Repositoriesview:
在EGit 3.5 及更高版本中,Team上下文菜单中有一个名为Stashes的菜单。它提供了一个隐藏更改的操作,还列出了任何现有的隐藏。相同的菜单也可用作工具栏图标和Git Repositories视图:
Selecting an existing stash from the menu opens it in a viewer. The changes can be inspected and there are actions for applying the stash or deleting it:
从菜单中选择一个现有的存储将在查看器中打开它。可以检查更改,并有应用存储或删除它的操作:
EGit 3.4 and ealier
EGit 3.4 及更高版本
- Open the Git Repositoriesview (Ctrl+3and typing, Cmd+3on Mac OS X)
- Expand the node of the corresponding repository
- Expand the Stashed Commitsnode
- Open the context menu of the stash and select Apply Stashed Changes
- 打开Git Repositories视图(Ctrl+3并键入,Mac OS X 上的Cmd+ 3)
- 展开对应仓库的节点
- 展开Stashed Commits节点
- 打开 stash 的上下文菜单并选择Apply Stashed Changes
回答by Yogesh Manware
In Eclipse (Luna) + eGIT, you can restore stash as
在 Eclipse (Luna) + eGIT 中,您可以将 stash 恢复为