英文:
How do I find my shelved changes in tfs Visual Studio 2008?
问题
我是新手TFS,我已经将我的代码的一些更改存储了起来,但现在我需要获取这些更改并继续进行项目工作。我该如何在VS2008中找到我的搁置集(shelveset),以及如何开始使用它,以便我可以继续进行项目?
我尝试右键单击源代码控制中的项目文件,但与VS2015不同,选项“查找”不可用。
谢谢您提前!
英文:
I am new to TFS, and I have shelved some changes of my code, however now I need to get those changes and continue working on my project. How can I find my shelveset on VS2008 (this is the version of vs that I have to use for my project) and how can I start using it so I can continue with my project?
I tried righ click on the projects file in Source Control, but the option Find is not available unlike VS2015.
Thank you in advance!
答案1
得分: 1
Visual Studio 2008文档仍然在线。<kbd>Unshelve</kbd>按钮在“挂起更改”窗口和顶部菜单栏的<kbd>文件</kbd>-><kbd>源代码控制</kbd>菜单中隐藏。
虽然您可以使用Get命令将更改集还原到工作区,但必须使用Unshelve命令来还原一个存储架。您可以使用“挂起更改”窗口中的Unshelve按钮将存储架中的一些或全部待定更改还原到工作区。有关“挂起更改”窗口的更多信息,请参阅如何:检入待定更改。当您使用Visual Studio将存储架中的所有更改还原到工作区时,与项目相关的待定更改信息也将还原到“挂起更改”窗口。
参见:存储和还原待定更改
通常,当用户界面令人困惑时,考虑返回到命令行工具:
从Visual Studio命令提示符的任何工作区文件夹中:
# 列出存储架
tf shelvesets
# 还原存储架
tf unshelve "存储架名称"
您还可以使用较新版本的Visual Studio进行源代码控制交互和从Visual Studio 2008进行开发。
英文:
The Visual Studio 2008 docs are still online. The <kbd>Unshelve</kbd> button is hidden in the Pending Changes window and in the <kbd>File</kbd>-><kbd>Source Control</kbd> menu in the top-level menu bar of visual studio.
> Whereas you can restore a changeset into a workspace using the Get command, you must use the Unshelve Command to restore a shelveset. You can use the Unshelve button in the Pending Changes window to restore one, some, or all the pending changes in a shelveset to your workspace. For more information about the Pending Changes window, see How to: Check In Pending Changes. When you unshelve all the changes in a shelveset to a workspace using Visual Studio, the pending changes information with which the items are associated is restored to the Pending Changes window also.
See: Shelve and unshelve pending changes
Generally, when the UI is confusing, consider falling back to the commandline tools:
From any folder in your workspace from a visual studio command prompt:
# List Shelves
tf shelvesets
# Unshelve
tf unshelve "shelveset name"
You can also use a newer version of Visual Studio to do your source control interactions and develop from Visual Studio 2008.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论