如何从源代码控制中获取源代码 [英] How to take source code out of source control

查看:135
本文介绍了如何从源代码控制中获取源代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在努力解决源代码管理问题。事情是;


我在VSO中创建了一个项目,并上传了我的源代码。一切都很好。我需要重构我的代码,它变得一团糟,我决定我需要重新开始并再次上传。我在VSO中删除了项目并创建了一个新项目,从头开始。


现在我无法从源代码控制中获取源代码,并上传到新项目。 VS正在显示一条错误消息,指出项目已在VSO中删除,而且我被卡住了。


Q;有没有一种好的方法可以从源代码控制中获取源代码,所以我可以从头开始上传到新项目?



谢谢,


Havard

解决方案

哈佛,


<我认为你的本地副本仍然绑定了源代码控制。您可以通过删除Windows资源管理器中源代码文件夹中的任何* .vssscc文件来删除项目中的绑定。


然后在VS中打开解决方案并添加到源代码管理中。


 或者在VS中打开解决方案,然后在菜单中转到文件 - > SourceControl - >高级 - >更改源代码管理。


然后取消绑定所有项目。右键单击解决方案并添加到源代码管理。


如果我误解了您的问题,请解释究竟发生了什么。屏幕截图肯定有帮助。


干杯!


Chaminda



Hi,

I am struggling with a problem with Source Control. The thing is;

I created a project in VSO, and uploaded my source code. All fine. I needed to restructure my code, it became a mess, and I decided that I need to start all over and upload again. I deleted the project in VSO and created a new one, to start from scratch.

Now I am not able to take my source code out of source control, and upload to the new project. VS is displaying an error message stating that the project was deleted in VSO, and I am stuck.

Q; Is there a good way to take the source code out of source control, so I can start from scratch and upload to a new project?

Thanks,

Havard

解决方案

Hi Harvard,

I think your local copy still has bindings to source control. You can remove bindings in the project by deleting any *.vssscc files in your source code folders in windows explorer.

Then open the solution in VS and add to source control.

 Or open the solution in VS then in menu go to File-->SourceControl--> Advance-->Change Source Control.

Then unbind all projects. The right click on the solution and add to source control.

If I have misunderstood your question please explain what exactly happens. Screenshot would definitely help.

Cheers!

Chaminda


这篇关于如何从源代码控制中获取源代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆